better recognition of `#prefix#@@pin_name` patterns in spice.awk

This commit is contained in:
stefan schippers 2026-08-18 09:46:41 +02:00
parent 5d5a4adbfd
commit 5ec3c5f2ff
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ function process( i,j, iprefix, saveinstr, savetype, saveanalysis)
}
# prefix applied to symbol pin, like for example prepending negation operator '~' to pin:
# format= ... #~#@@A[3:0] --> #~#?4 A[3],A[2],A[1],A[0] --> ~A[3],~A[2],~A[1],~A[0]
if($i ~/^#[~a-zA-Z_0-9]+#\?/) {
if($i ~/^#[~a-zA-Z_0-9]+#\?-?[0-9]+/) {
iprefix=$i
sub(/^#/,"",iprefix)
sub(/#.*/,"",iprefix)

View File

@ -23,7 +23,7 @@ G {}
K {type=subcircuit
vhdl_stop=true
verilog_stop=true
format="@name @pinlist @symname"
format="@name #~#@@D @pinlist @symname"
template="name=x1 delay=\\"400 ps\\" del=400"
generic_type="delay=time"}
V {}