Files
tools.ads.dk/de/ael/boot.ael
T
roka 2562ba7a10 Expand verilog model search path with the folder where the cells are located
Then the verilog model can live with the cell itself
2026-06-28 13:12:16 +02:00

47 lines
1.8 KiB
Plaintext

// ----------------------------------------------------------------------------
// (setq tab-width 4)
// Place custom AEL code here.
// For example, any custom AEL shared by all components in this library.
// ----------------------------------------------------------------------------
decl MRMODELS_NAME = designKitRecord[0];
decl MRMODELS_PATH = designKitRecord[1];
decl MRMODELS_BOOT = designKitRecord[2];
decl MRMODELS_VER = designKitRecord[3];
decl MRMODELS_DIR_CELLS = strcat(MRMODELS_PATH, MRMODELS_NAME, "/" );
decl MRMODELS_DIR_CIRCUIT_AEL = strcat(MRMODELS_PATH, "circuit/ael/" );
decl MRMODELS_DIR_CIRCUIT_BITMAP = strcat(MRMODELS_PATH, "circuit/bitmaps/" );
decl MRMODELS_DIR_CIRCUIT_ARTWORK = strcat(MRMODELS_PATH, "circuit/artwork/" );
decl MRMODELS_DIR_CIRCUIT_MODELS = strcat(MRMODELS_PATH, "circuit/models/" );
decl MRMODELS_DIR_DE_AEL = strcat(MRMODELS_PATH, "de/ael/" );
decl MRMODELS_DIR_DRC_RULES = strcat(MRMODELS_PATH, "drc/rules/" );
decl MRMODELS_DIR_VERILOGA = strcat(MRMODELS_PATH, "veriloga/" );
decl logFile = fopen("C:/temp/my_ads_log.txt", "a"); // "a" = append mode
if (logFile != NULL)
{
fprintf(logFile, "Loading %s design kit\n", MRMODELS_NAME);
fprintf(logFile, "Path : %s\n", MRMODELS_PATH);
fprintf(logFile, "Boot : %s\n", MRMODELS_BOOT);
fprintf(logFile, "Models: %s\n", MRMODELS_DIR_CELLS);
fclose( logFile);
}
else
{
de_error("Failed to open log file!");
}
// ----------------------------------------------------------------------------
// Load
// ----------------------------------------------------------------------------
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mrmodels_include"));
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mr/mr_resistor" ));