.subckt pll_top refclk reset p0_clk_0 p0_clk_1...
There are five ways to specify the port mapping for the SPICE instance p1 in Verilog module top :
- Using the reference file name with the
xruncommand:xrun work.scs top.v//work.scsamsd{...portmapsubckt=topconfig cell=top use=spice}
With this specification, the port association between Verilog and SPICE will be established using the information from the Verilog reference filetop.vspecified in thexruncommand. The portpll_clkin the resulting port bind file will be mapped as:{ p0_clk_0, p0_clk_1 } : P0_CLK[1:0] - Using simple portmap card:
amsd{...
portmap subckt=pll_top...}
With this specification, the port association between Verilog and SPICE will be established using the information in the SPICE subcircuit. The portpll_clkin the resulting port bind file will be mapped as:{ p0_clk_0, p0_clk_1 } : P0_CLK[0:1] - Using
reffilein portmap card with default ofporttype=orderamsd{...portmap subckt=pll_top reffile="top.v"...}With this specification, the port association between Verilog and SPICE will be established using the information from both the reference Verilog module and the reference SPICE subcircuit. In other words, their port order will be preserved from their original source files. The portpll_clkin the resulting port bind file will be mapped as:{ p0_clk_0, p0_clk_1 } : P0_CLK[1:0] - Using
reffilein portmap card withporttype=nameamsd{...portmap subckt=pll_top reffile="top.v" porttype=name...}With this specification, the port association between Verilog and SPICE will be established using the information in the reference Verilog module, both for the name and its port order. The portpll_clkin the resulting port bind file will be mapped as:{ p0_clk_1, p0_clk_0 } : P0_CLK[1:0] - Using
filein portmap cardamsd{...portmap subckt=pll_top file="pll_top.pb"...}With this specification, the port association between Verilog and SPICE will be established using the information in the given port bind file,pll_top.pb.You can specify the port binding information in thepll_top.pbfile for portpll_clkto reflect the exact connection expected at the Verilog/SPICE boundary. For example:{ p0_clk_1, p0_clk_0 } : P0_CLK[1:0]
Related Topics
