Product Documentation
Spectre AMS Designer and Xcelium Simulator Mixed-Signal User Guide
Product Version 22.09, September 2022

Applying Bit-Wise Discipline for SPICE Bus Connections

In a SPICE port to bus element connection, when you use the cellport scopetype for cell port definitions, to apply an interface element parameter specification to specific connect modules, specify the -adv_ms option. This ensures that the parameter specification is applied only to the targeted connect module and not to every connect module on the bus.

The following example illustrates that discipline 1.8 is set to top.in[0]. And, the default discipline (vsup=5) is applied to the other ports top.in[1] and top.in[2].

//top.sv
module top;
reg clk = 0;
wire ain;
wire [0:2] in;
always #5 clk=~clk;
assign in[0] = clk;
assign in[1] = clk;
assign in[2] = clk;
assign ain = clk;
spice_dut I0(in,ain); //SPICE Instance
endmodule

//ana_gate.sp
.subckt spice_dut in_0 in_1 in_2 ain
xinv0 in_0 out_0 inv_1p8
xinv1 in_1 out_1 inv_5
xinv2 in_2 out_2 inv_5
xinv3 ain aout inv_5
.ends

//amscf.scs
amsd {
portmap subckt=spice_dut autobus=yes file="./spice_dut.pb"
config cell=spice_dut use=spice
// IE Cards
}

amsd {
ie vsup=5.0
ie vsup=1.8 cellupport=spice_dut.in_0;
}

In the first case, discipline, 1.8 is set for top.in along with top.in[0]. In the second instance also, for top.in, top.in[0], and top.in[1] the discipline set is 1.8.The following ie card specification illustrates that when there is no default discipline set and only one bit is set, or multiple bits are set the same discipline, then the bus discipline is merged into one.  

amsd {
  ie vsup=1.8 cellupport=spice_dut.in_0;
}

or

amsd {
  ie vsup=1.8 cellupport=spice_dut.in_0;
  ie vsup=1.8 cellupport=spice_dut.in_1;
}

The following ie card specification illustrates that when there is no default discipline and multiple bits are set to the different discipline, then no discipline is set to the unset bits. In this case, discipline 1.8 is set for top.in[0] and 2.8 is set for top.in[1].

amsd {
ie
vsup=1.8 cellupport=spice_dut.in_0;
ie
vsup=2.8 cellupport=spice_dut.in_1;
}

Related Topic



 ⠀
X