better recognition of `#prefix#@@pin_name` patterns in spice.awk
This commit is contained in:
parent
5d5a4adbfd
commit
5ec3c5f2ff
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue