Junbeom Park
04/29/2023, 9:44 AMStefan Schippers
04/29/2023, 10:57 AMgf180mcu
installation:
set PDK_ROOT /usr/local/share/pdk
set PDK gf180mcuA
set XSCHEM_LIBRARY_PATH {}
append XSCHEM_LIBRARY_PATH ${XSCHEM_SHAREDIR}/xschem_library
append XSCHEM_LIBRARY_PATH :$PDK_ROOT/$PDK/libs.tech/xschem
append XSCHEM_LIBRARY_PATH :$env(PWD)
set 180MCU_MODELS ${PDK_ROOT}/$PDK/libs.tech/ngspice
set 180MCU_STDCELLS ${PDK_ROOT}/$PDK/libs.ref/gf180mcu_fd_sc_mcu7t5v0/spice
Then place the attached files in the directory. the AND2_1 symbol has the following attributes set (descend into the symbol and press 'q'):
type=primitive
function2="0 1 &"
format="@name @@A1 @@A2 @@Z @VDD @VNW @VPW @VSS @prefix\\and2_1"
template="name=x1 VDD=VDD VNW=VDD VPW=VSS VSS=VSS prefix=gf180mcu_fd_sc_mcu7t5v0__"
extra="VDD VNW VPW VSS prefix"
In above attributes the order of pins in the format attribute (@@A1 @@A2 ....) must match the order of the pins in the pdk spice file (gf180mcu_fd_sc_mcu7t5v0.spice).
In the example I am using the 7 track 5V stdcells set. You can use the 3.3V as well by updating the 180MCU_STDCELLS variable and the prefix template in the symbol.
If you open the test_stdcells.sch schematic you will see a testbench for a simple AND2_1 simulation.