Hi, I was trying to make a circle symbol, but I ke...
# xschem
a
Hi, I was trying to make a circle symbol, but I keep getting Netlist errors for the ports of the symbol that I've created (like: open net and undriven net). It seems there is a grid problem here. How could I solve the issue? Thanks
m
@Amirhossein zanjani can you give us a little more information? Symbols can contain circles, but they also need to have ports. The ports should probably be on the grid. Here’s a sample. The ports are in red.
a
@Mitch Bailey Thank you for your reply. I attached an image from the mentioned symbol. This symbol connections in the testbench is undriven and open.
m
Can you share the
.sym
file?
a
This is the symbol I mentioned earlier. Thanks.
m
@Amirhossein zanjani My guess is that you are correct in that the pins are off grid. Some of the symbols that I use have
Copy code
B 5 -42.5 -2.5 -37.5 2.5 {name=IN dir=in goto=1 propag=1}
B 5 37.5 -2.5 42.5 2.5 {name=OUT dir=out }
B 5 -22.5 -22.5 -17.5 -17.5 {name=VCC_IO dir=inout}
B 5 -22.5 17.5 -17.5 22.5 {name=VGND dir=inout}
Can you try this?
Copy code
v {xschem version=2.9.9 file_version=1.2 
}
G {}
K {type=subcircuit
format="@name @pinlist @symname"
template="name=X1"}
V {}
S {}
E {}
L 4 -33.75 0 55 -0 {}
L 4 7.5 -40 7.5 35 {}
L 4 -127.5 -37.5 -77.5 -37.5 {}
L 4 -122.5 45 -75 45 {}
L 4 -37.5 87.5 -37.5 115 {}
L 4 -37.5 86.25 -37.5 87.5 {}
L 4 -11.25 97.5 -11.25 115 {}
L 4 -11.25 97.34375 -11.25 97.5 {}
L 4 37.1875 97.96875 37.1875 115.46875 {}
L 4 70 114.84375 70.15625 82.8125 {}
L 4 105.625 38.59375 153.125 38.59375 {}
L 4 107.5 -31.5625 155 -31.5625 {}
L 4 12.96875 -97.8125 13.125 -132.34375 {}
B 5 -132.5 -42.5 -127.5 -37.5 {name=i1
dir=inout}
B 5 -132.5 47.5 -127.5 52.5 {name=i2
dir=inout}
B 5 -42.5 117.5 -37.5 122.5 {name=VSS
dir=inout}
B 5 -12.5 117.5 -7.5 122.5 {name=BT
dir=inout}
B 5 37.5 117.5 42.5 122.5 {name=B1
dir=inout}
B 5 67.5 117.5 72.5 122.5 {name=B2
dir=inout}
B 5 157.5 37.5 162.5 42.5 {name=O2
dir=inout}
B 5 157.5 -32.5 162.5 -27.5 {name=O1
dir=inout}
B 5 7.5 -142.5 12.5 -137.5 {name=VDD
dir=inout}
A 4 13.75 1.25 99.25503765552658 216.2926297284796 360 {}
T {@name} 97.48046875 73.84765625 0 0 0.4 0.4 {}
T {VDD} 4.43359375 -95.15625 0 0 0.2 0.2 {}
T {i1} -72.392578125 -44.53125 0 0 0.2 0.2 {}
T {i2} -71.1572265625 37.4560546875 0 0 0.2 0.2 {}
T {VSS} -31.09375 61.4892578125 1 0 0.2 0.2 {}
T {BT} -6.40625 78.37890625 1 0 0.2 0.2 {}
T {B1} 42.5927734375 77.9931640625 1 0 0.2 0.2 {}
T {B2} 74.3603515625 65.6201171875 1 0 0.2 0.2 {}
T {O1} 102.8125 -25.37109375 2 0 0.2 0.2 {}
T {O2} 102.34375 43.53515625 2 0 0.2 0.2 {}
a
I tried it, the location of Pins were changed and I connected them to the body of the symbol. still the netlist errors remaining
m
Can you post the ERC file results?
View
->
Show ERC Info window