Absolute minimal initial checkin
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
*.*~
|
||||
*.atf
|
||||
.oalib
|
||||
libRefs.json
|
||||
@@ -0,0 +1,134 @@
|
||||
defun scan_folder_va( folder)
|
||||
{
|
||||
decl modelFileList;
|
||||
decl net = "";
|
||||
decl file;
|
||||
decl path;
|
||||
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Collect veriloga model files in the specified folder
|
||||
// ----------------------------------------------------
|
||||
modelFileList = get_dir_files(folder,"va");
|
||||
|
||||
while( is_list(modelFileList))
|
||||
{
|
||||
file = car(modelFileList);
|
||||
path = strcat(folder,file);
|
||||
net = strcat(net,sprintf("#load \"veriloga\", \"%s\"\n",path));
|
||||
|
||||
modelFileList = cdr( modelFileList);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// scan sub folders
|
||||
// ----------------------------------------------------
|
||||
modelFileList = get_dir_files(folder);
|
||||
|
||||
while( is_list(modelFileList))
|
||||
{
|
||||
file = car(modelFileList);
|
||||
path = strcat(folder,file);
|
||||
|
||||
if( is_dir(path) == TRUE)
|
||||
if( file != "." && file != "..")
|
||||
net = strcat(net,scan_folder_va(strcat(path,"/")));
|
||||
|
||||
modelFileList = cdr( modelFileList);
|
||||
}
|
||||
|
||||
return net;
|
||||
}
|
||||
|
||||
defun scan_folder( folder, ext)
|
||||
{
|
||||
decl modelFileList;
|
||||
decl net = "";
|
||||
decl file;
|
||||
decl path;
|
||||
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Collect models in the specified folder
|
||||
// ----------------------------------------------------
|
||||
modelFileList = get_dir_files(folder,"mod");
|
||||
|
||||
while( is_list(modelFileList))
|
||||
{
|
||||
file = car(modelFileList);
|
||||
path = strcat(folder,file);
|
||||
net = strcat(net,sprintf("#include \"%s\"\n",path));
|
||||
|
||||
modelFileList = cdr( modelFileList);
|
||||
}
|
||||
|
||||
modelFileList = get_dir_files(folder,"net");
|
||||
|
||||
while( is_list(modelFileList))
|
||||
{
|
||||
file = car(modelFileList);
|
||||
path = strcat(folder,file);
|
||||
net = strcat(net,sprintf("#include \"%s\"\n",path));
|
||||
|
||||
modelFileList = cdr( modelFileList);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// scan sub folders
|
||||
// ----------------------------------------------------
|
||||
modelFileList = get_dir_files(folder);
|
||||
|
||||
while( is_list(modelFileList))
|
||||
{
|
||||
file = car(modelFileList);
|
||||
path = strcat(folder,file);
|
||||
|
||||
if( is_dir(path) == TRUE)
|
||||
if( file != "." && file != "..")
|
||||
net = strcat(net,scan_folder(strcat(path,"/"),ext));
|
||||
|
||||
modelFileList = cdr( modelFileList);
|
||||
}
|
||||
|
||||
return net;
|
||||
}
|
||||
|
||||
defun mrModels_process_netlist_cb( cbP, cbData, instH)
|
||||
{
|
||||
decl net = "";
|
||||
|
||||
net = strcat(net,"; models\n");
|
||||
net = strcat(net,scan_folder(MRMODELS_DIR_CIRCUIT_MODELS,""));
|
||||
|
||||
net = strcat(net, "; veriloga models\n");
|
||||
net = strcat(net,scan_folder_va(MRMODELS_DIR_VERILOGA));
|
||||
|
||||
fprintf(stderr, "%s",net);
|
||||
return net;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Item definition
|
||||
// ----------------------------------------------------------------------------
|
||||
create_item( "mrmodels_include", // name
|
||||
"Process Netlist Include", // description label
|
||||
"NetlistInclude", // prefix
|
||||
ITEM_UNIQUE | ITEM_GLOBAL, // attributes
|
||||
NULL, // priority
|
||||
NULL, // iconName
|
||||
standard_dialog, // dialogName
|
||||
NULL, // dialogData
|
||||
ComponentNetlistFmt, // netlist format string
|
||||
NULL, // netlist data
|
||||
ComponentAnnotFmt, // display format string
|
||||
NULL, // symbol name
|
||||
NULL, // artwork type
|
||||
NULL, // artwork data
|
||||
ITEM_PRIMITIVE_EX, // extra attributes
|
||||
|
||||
list(
|
||||
dm_create_cb( ITEM_NETLIST_CB,
|
||||
"mrModels_process_netlist_cb",
|
||||
"",
|
||||
TRUE))
|
||||
);
|
||||
@@ -0,0 +1,24 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// (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_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/" );
|
||||
|
||||
fprintf(stderr, "Loading %s design kit\n", MRMODELS_NAME);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Load
|
||||
// ----------------------------------------------------------------------------
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mrmodels_include"));
|
||||
@@ -0,0 +1,7 @@
|
||||
# Library defs for mrModels
|
||||
# -----------------------------------------------
|
||||
DEFINE mrModels ./mrModels
|
||||
DEFINE mrModels_tech ./mrModels_tech
|
||||
|
||||
ASSIGN mrModels libMode readOnly
|
||||
ASSIGN mrModels_tech libMode readOnly
|
||||
@@ -0,0 +1,7 @@
|
||||
# Library defs for editing "mrModels"
|
||||
# -----------------------------------------------
|
||||
DEFINE mrModels ./mrModels
|
||||
DEFINE mrModels_tech ./mrModels_tech
|
||||
|
||||
ASSIGN mrModels libMode shared
|
||||
ASSIGN mrModels_tech libMode shared
|
||||
@@ -0,0 +1,17 @@
|
||||
DESIGN_KIT_NAME = mrModels
|
||||
TECH_DESC = mrModels
|
||||
VERSION = 1.0
|
||||
DESIGN_KIT_ROOT = ../
|
||||
BOOT_AEL = ../de/ael/boot
|
||||
ADSLIBCONFIG_DIRECTORY = ../circuit/config
|
||||
INPUT_DATA_PATH = ../circuit.data;../circuit/models
|
||||
DDS_TEMPLATES_DIRECTORY = ../circuit/templates
|
||||
TEMPLATES_DIRECTORY = ../circuit/templates/library
|
||||
LIB_BROWSER_CTL = ../circuit/records/mrModels_library.ctl
|
||||
VERILOGA_DIRECTORY = ../veriloga
|
||||
EXPRESSIONS_DIRECTORY = ../expressions/ael
|
||||
DOC_DIRECTORY = ../doc
|
||||
DRC_DIRECTORY = ../drc/rules
|
||||
NETLIST_EXPORTER_DIRECTORY= ../netlist_exp
|
||||
BIN_DIRECTORY = ../bin/$SIMARCH$COMPILER_VER
|
||||
DEFAULTS_DESIGNS=mrModels:mrmodels_include:schematic
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Master.tag File, Rev:1.0
|
||||
sch.oa
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
-- Master.tag File, Rev:1.0
|
||||
symbol.oa
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
TECH_DESC=mrModels_tech
|
||||
DEFAULTS_DESIGNS=mrModels:mrmodels_include:schematic
|
||||
EXPR_EVALUATOR_PREF=No Preference
|
||||
Binary file not shown.
Reference in New Issue
Block a user