I am using the Virtuoso File-Import-Spice to import a spice file as a schematic cellview. I have included the necessary device mapping, and the "resistor" is mapped to "res" correctly. However, SpiceIn shows that it cannot find the analogLib.res:symbol. Here are the SpiceIn log headers and the error:
===================
Spice In Log File
===================
Parameter file: /tmp/spiceInPg13900
Import Parameters:
Netlist file name: /home/UMNSTT/iPMTJ/MTJ_write.sp
Output library name: MTJ
Output View Type: schematic
Schematic view name: schematic
Netlist view name: netlist_tmp
Reference Library List: NCSU_TechLib_FreePDK45 analogLib MTJ
Top cell: top
Device-mapping file name: /home/device_map
Master Cell for Ground: gnd
Schematic Generation parameter file: /tmp/schOpts_spiceInPg13900
Simulator: spectre
Output Simulator: spectre
paramCaseValue: default
Language: SPICE
Total number of files: 1.
Netlist File: /home/UMNSTT/iPMTJ/MTJ_write.sp.
Total number of Subckts: 4.
********
// The correct import messages are omitted for easier reading.
Inst: R_Is
Found net 'Is'.
Did not find 'NCSU_TechLib_FreePDK45.gnd:symbol'.
Master Cellview: 'analogLib.gnd:symbol' found.
Found net 'gnd!'.
Master Cell 'resistor' mapped to 'res'.
Did not find 'NCSU_TechLib_FreePDK45.res:symbol'.
Did not find 'analogLib.res:symbol'.
ERROR (SPICEIN-24): Spice In did not find the symbol view of the master cell 'resistor' of the instance
'R_Is' in the subcircuit 'LLG'. Specify the reference library that has the symbol
view of the master cell, or use device-mapping to map 'resistor' to a different cell.
Some device mapping file examples for commonly used components while importing
a spice netlist include:
devselect := resistor res
devselect := capacitor cap
devselect := inductor ind
devselect := mutual_inductor mind
Search 'SPICEIN-24' in Cadence Help for more information.
I am confused because the analogLib.res:symbol is there, as the following screenshot shows. The tested .sp file is the MTJ SPICE model from University of Minnesota: http://cspin.umn.edu/resources/mtj_spice.html Please help me to figure out how to import the MTJ model correctly. Thank you.