https://open-source-silicon.dev logo
s

Surag P

02/21/2021, 1:29 PM
How can I add a PMOS to my verilog code for openlane?
🌍 1
k

Kunal

02/21/2021, 2:11 PM
Are you asking about pmos primitives? They are not synthesizable
s

Surag P

02/21/2021, 2:11 PM
Yes!!
k

Kunal

02/21/2021, 2:13 PM
You can use something like below https://github.com/kunalg123/SystemDesignWorkshopCollaterals/blob/master/cmos_inverter.v But they are not synthesizable. So can't be used for PNR
🌍 1
s

Surag P

02/21/2021, 2:30 PM
Thanks for the answer. But its needs to be synthesizable for my design. How do i go about it? Like in there are pfets and nfets defined in sky130_fd_pr. How can i include them in my verilog code for openlane?
k

Kunal

02/21/2021, 2:45 PM
PFET's and NFET's are in general not synthesizable
s

Surag P

02/21/2021, 2:56 PM
Ohh Okay
t

Tim Edwards

02/22/2021, 1:13 AM
@Surag P: Depending on what it is you're trying to do, any components you want can go into a "hard macro" and can be placed and routed with everything else. It will get dropped somewhere into the design with lots of space around it so that it doesn't interfere with the rows of the digital core, but it can be done (the best place to be asking these questions is the #openlane channel).
👍 2
🌍 1
s

Surag P

02/23/2021, 11:08 AM
Ohh okay.How do i go about making the Hard Macro?