Initial Setup
If you have not already, read the BAG3++ documentation. Follow the instructions for initial Server Setup.
This synchronous SAR ADC generator has only been released with the Skywater 130nm process. You should therefore set up a
bag3_skywater130_workspace, following the instructions on the page.cdinto your set-up workspace directory.Clone the
bag3_sync_sar_adcrepo. Link to the github can be found here.Go into the
datadirectory by runningcd datain the workspace directory.Clone the yaml data folder. Currently only the Skywater 130 configurations are available.
In
.bashrc_pypathadd the following to include thebag3_sync_sar_adcgenerator directory in thePYTHONPATH:export PYTHONPATH="${PYTHONPATH}:${BAG_WORK_DIR}/bag3_sync_sar_adc/src"
In
bag_libs.def, addbag3_sync_sar_adcon a new line.In
cds.lib.bagadd the following to include thebag3_sync_sar_adcOAviews in your virtuoso setup. This is optional if you do not want to use virtuoso:DEFINE bag3_sync_sar_adc $BAG_WORK_DIR/bag3_sync_sar_adc/OA/bag3_sync_sar_adc
To generate a design from this repo run the following command in your workspace:
./gen_cell.sh data/bag3_sync_sar_adc_data_skywater130/specs_gen/sar_lay/your_yaml.yamlTo generate the netlist with BAG, add
-netlistto the above command. For a full list of optional arguments use:./gen_cell.sh -h