tree: 330fbbbd07436007d037041aa82c76dbdc0815b6 [path history] [tgz]
  1. audiodac.sch
  2. audiodac.spice
  3. audiodac.sym
  4. audiodac.v
  5. audiodac_clean.sch
  6. count_nets.awk
  7. counter.sch
  8. counter.sym
  9. counter.v
  10. counter_clean.sch
  11. gmon.out
  12. make_sky130_sch_from_spice.awk
  13. make_sky130_sch_from_verilog.awk
  14. README.md
  15. sky130_fd_sc_hvl__lsbuflv2hv_1.sch
  16. sky130_fd_sc_hvl__lsbuflv2hv_1.spice
  17. sky130_fd_sc_hvl__lsbuflv2hv_1.sym
  18. sky130_fd_sc_hvl__lsbuflv2hv_1_redraw.sch
  19. sky130_fd_sc_hvl__lsbuflv2hv_1_redraw_fix.sch
  20. spm.sch
  21. spm.spice
  22. spm.sym
  23. spm.v
  24. xschemrc
dependencies/pdks/volare/sky130/versions/0059588eebfc704681dc2368bd1d33d96281d10f/sky130A/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.