Altera_Forum
Honored Contributor
17 years agoMapping EDIF file from OrCAD Capture 9.2
Problem: Can't get Library Mapping funtion to work
Description: Design for mixed signal ASIC captured and simulated in OrCAD 9.2. Need to emulate logic in a MAXII CPLD. EDIF 2.0.0 netlist generated from OrCAD needs to be mapped for use in Quartus II 8.1 Design Entry Tool: OrCAD 9.2 Output: EDIF 2.0.0 netlist Synthesis / Fitter: Quartus II 8.1 Design file: CNTR.EDN Type: EDIF File Design entry/synthesis tool: Custom Library Mapping File Name: sta-alt1.lmf First attempt to compile following edit of sta-alt1.lmf alway gives the warning Warning: Can't locate Library Mapping File Any following attempts to compile do not get the warning The following errors are always generated: Error: Node instance "U1" instantiates undefined entity "NA2" Error: Node instance "U2" instantiates undefined entity "I" Error: Node instance "U3" instantiates undefined entity "NA2" Error: Node instance "U4" instantiates undefined entity "NA2" this is the library mapping file: LIBRARY sta-alt1 % OrCAD STA Library to Altera Library Logic Mapping File % % Date: 02/19/2009 % % Rev Notes: % % 02/19/2009 - Initial build % % NAND2 % BEGIN FUNCTION nand2 (IN1,IN2) RETURNS (OUT) FUNCTION "NA2" ("A","B") RETURNS ("Z") END % INV % BEGIN FUNCTION not (IN) RETURNS (OUT) FUNCTION "I" ("A") RETURNS ("Z") END edif file produced from orcad: (edif CNTR (edifVersion 2 0 0) (edifLevel 0) (keywordMap (keywordLevel 0)) (status (written (timeStamp 2009 02 24 21 08 22) (program "CAPTURE.EXE" (Version "9.2.446")) (comment "Original data from OrCAD/CAPTURE schematic")) (comment "") (comment "Thursday, February 19, 2009") (comment "C:\DOCUMENTS AND SETTINGS\ALL USERS\DOCUMENTS\ALTERA\PBLCNTR.DSN") (comment "") (comment "") (comment "") (comment "") (comment "") (comment "")) (external OrCAD_LIB (edifLevel 0) (technology (numberDefinition (scale 1 1 (unit distance)))) (cell NA2 (cellType generic) (comment "From OrCAD library STA_ALTERA.OLB") (view NetlistView (viewType netlist) (interface (port A (direction INPUT)) (port B (direction INPUT)) (port Z (direction OUTPUT))))) (cell I (cellType generic) (comment "From OrCAD library STA_ALTERA.OLB") (view NetlistView (viewType netlist) (interface (port A (direction INPUT)) (port Z (direction OUTPUT)))))) (library MAIN_LIB (edifLevel 0) (technology (numberDefinition (scale 1 1 (unit distance)))) (cell CNTR (cellType generic) (view NetlistView (viewType netlist) (interface (port TST3 (direction INPUT)) (port CKMAIN (direction OUTPUT)) (port CQN1 (direction INPUT)) (port CQN6 (direction INPUT))) (contents (instance U1 (viewRef NetlistView (cellRef NA2 (libraryRef OrCAD_LIB)))) (instance U2 (viewRef NetlistView (cellRef I (libraryRef OrCAD_LIB)))) (instance U3 (viewRef NetlistView (cellRef NA2 (libraryRef OrCAD_LIB)))) (instance U4 (viewRef NetlistView (cellRef NA2 (libraryRef OrCAD_LIB)))) (net TST3 (joined (portRef A (instanceRef U4)) (portRef A (instanceRef U2)) (portRef TST3))) (net CQN1 (joined (portRef B (instanceRef U4)) (portRef CQN1))) (net CKMAIN (joined (portRef Z (instanceRef U3)) (portRef CKMAIN))) (net CQN6 (joined (portRef A (instanceRef U1)) (portRef CQN6))) (net N1215400 (joined (portRef B (instanceRef U3)) (portRef Z (instanceRef U4)))) (net N1215286 (joined (portRef Z (instanceRef U1)) (portRef A (instanceRef U3)))) (net N12153941 (joined (portRef B (instanceRef U1)) (portRef Z (instanceRef U2)))))))) (design CNTR (cellRef CNTR (libraryRef MAIN_LIB)))) Any Ideas? Thanks in advance, Eric