tree: b6fb4f4c5655e495acf9d3e7db19e1608143d468 [path history] [tgz]
  1. audiodac.v
  2. audiodac_clean.sch
  3. counter.sch
  4. counter.sym
  5. counter.v
  6. counter_clean.sch
  7. make_sky130_sch_from_spice.awk
  8. make_sky130_sch_from_verilog.awk
  9. README.md
  10. sky130_fd_sc_hvl__lsbuflv2hv_1.sch
  11. sky130_fd_sc_hvl__lsbuflv2hv_1.spice
  12. sky130_fd_sc_hvl__lsbuflv2hv_1.sym
  13. sky130_fd_sc_hvl__lsbuflv2hv_1_redraw.sch
  14. sky130_fd_sc_hvl__lsbuflv2hv_1_redraw_fix.sch
  15. spm.v
  16. xschemrc
usr/local/share/pdk/sky130B/libs.tech/xschem/xschem_verilog_import/README.md

CREATE A SCHEMATIC FROM A VERILOG NETLIST

Run this command:

./make_sky130_sch_from_verilog.awk counter.v > log

This will create schematic counter.sch (and symbol counter.sym)

2

The schematic has been cleaned up by removing power taps, filler cells and power decaps, since these are not used in simulation. The cleaned up example is saved in counter_clean.v

You must edit make_sky130_sch_from_verilog.awk and change the xschem_lib_path to point to the sky130_stdcells directory containing xschem symbols for the sky130_fd_sc_hd standard cells. If you are using open_pdks it is usually located in:
<install_path>/share/pdk/sky130A/libs.tech/xschem/sky130_stdcells

After adding the code.sym elements for locating the Skywater spice models and giving spice commands and voltage sources the circuit can be simulated right away. I have added also a graph in the schematic (New xschem feature!) so waveforms can be loaded / viewed / zoomed directly. For waveform raw file loading into xschem ngspice must save the file in binary format.

1

CREATE A SCHEMATIC FROM A SPICE NETLIST

Create the sch file from spice by running:

./make_sch_from_spice.awk sky130_fd_sc_hvl__lsbuflv2hv_1.spice

This will generate sky130_fd_sc_hvl__lsbuflv2hv_1.sch (and sky130_fd_sc_hvl__lsbuflv2hv_1.sym)

You must edit make_sky130_sch_from_spice.awk and change the xschem_lib_path to point to the sky130_fd_pr directory containing xschem symbols for the skywater-130 transistors and components.