OpenFPGA/docs/source/fpga_spice/customize_subckt.rst

14 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2018-09-13 23:58:54 -05:00
Create Customized SPICE Modules
-------------------------------
2018-09-13 23:58:54 -05:00
To make sure the customized SPICE netlists can be correctly included in FPGA-SPICE, the following rules should be fully respected:
2018-10-12 16:50:09 -05:00
2019-04-01 17:27:06 -05:00
1. The customized SPICE netlists could contain multiple sub-circuits but the names of these sub-circuits should not be conflicted with any reserved words.. Here is an example of defining a sub-circuit in SPICE netlists. The <subckt_name> should be a unique one, which should not be conflicted with any reserved words.
2018-09-13 23:58:54 -05:00
.subckt <subckt_name> <ports>
2019-04-01 17:27:06 -05:00
2. The ports of sub-circuit to be included should strictly follow the sequence:
2018-09-13 23:58:54 -05:00
<input_ports> <output_ports> <sram_ports> <clock_ports> <vdd> <gnd>
2018-10-12 16:50:09 -05:00
It is not necessary to keep the names of ports be the same with what is defined in the SPICE models. But the bandwidth of the ports should be consistent with what is defined in the Circuit models.
2018-09-13 23:58:54 -05:00
2019-04-01 17:27:06 -05:00
.. note:: If the customized SPICE netlists include inverters, buffers or transmission gates, it is recommended to use those auto-generated by FPGA-SPICE. It is also recommended to use the transistor sub-circuit (vpr_nmos and vpr_pmos) auto-generated by FPGA-SPICE. In the appendix, we introduce how to use these useful sub-circuits.
2018-09-13 23:58:54 -05:00