13 lines
1.2 KiB
ReStructuredText
13 lines
1.2 KiB
ReStructuredText
Create Customized SPICE Modules
|
|
===============================
|
|
To make sure the customized SPICE netlists can be correctly included in FPGA-SPICE, the following rules should be fully respected:
|
|
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.
|
|
.subckt <subckt_name> <ports>
|
|
|
|
2. The ports of sub-circuit to be included should strictly follow the sequence:
|
|
<input_ports> <output_ports> <sram_ports> <clock_ports> <vdd> <gnd>
|
|
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 SPICE models.
|
|
|
|
If the customized SPICE netlists includes inverters, buffers or transmission gates, it recommended to use those auto-generated by FPGA-SPICE. It is also recommend 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.
|
|
|