Hello. I'm using xschem with gf180mcu PDK. There a...
# general
j
Hello. I'm using xschem with gf180mcu PDK. There are many digital stdcells I can use in xschem with SKY130 PDK. But I couldn't find them in xschem with gf180mcu PDK. Should I manually design latches, flip-flops, etc. to use them? or is there any sources that I can use in xschem? Thank you for reading my question.
s
@Junbeom Park I need to add these standard cells, will take an action, since now the gf180 pdk is quite stabilized. The gf180 standard cells have different naming conventions and different pin names w.r.t sky130: (A1,A2, Z) vs (A,B,X) for a nand gate, for example, so porting from sky130 is doable but requires some work. I am sending a simple test schematic that uses a AND2_1 symbol and uses the spice definition from the pdk. Create an empty directory, place an xschemrc file in it. You need to set the following variables in your xschemrc according to your
gf180mcu
installation:
Copy code
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'):
Copy code
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.
1.png