At least one node required for subcircuit test
nbingham1 opened this issue · 2 comments
nbingham1 commented
Describe the bug
prs2net creates stubs in the spice file for empty processes. Xyce does not allow empty processes. The following is the simplest example, but this most often shows up in templated processes like delay lines. For example, a delay line of length 0.
To Reproduce
Steps to reproduce the behavior:
- Use the ACT source included below.
prs2net -Tsky130 -p 'test<>' test.act > test.spi
- Observe the following spice file
*
*---- act defproc: test<> -----
* raw ports:
*
.subckt test
*.POWER VDD Vdd
*.POWER GND GND
*.POWER NSUB GND
*.POWER PSUB Vdd
.ends
*---- end of process: test<> -----
Xyce test.spi
- Observe
Netlist error in file test.spi at or near line 5
At least one node required for subcircuit test
ACT source
export defproc test()
{
prs {
}
}
test dut;
Expected behavior
prs2net should create an empty spice file
Computer setup (please complete the following information):
$ lsb_release -a; g++ --version
LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
g++ (Ubuntu 10.3.0-1ubuntu1) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rmanohar commented
Just pushed a fix for this.
nbingham1 commented
I can confirm it works, thanks!