mirror of https://github.com/zachjs/sv2v.git
13 lines
280 B
Plaintext
13 lines
280 B
Plaintext
|
|
reg never;
|
||
|
|
`define TEST(sense, num) \
|
||
|
|
reg x``num, y``num, z``num; \
|
||
|
|
function automatic t``num; \
|
||
|
|
input inp; \
|
||
|
|
t``num = x``num; \
|
||
|
|
endfunction \
|
||
|
|
always``sense begin \
|
||
|
|
y``num = 0; \
|
||
|
|
z``num = t``num(0); \
|
||
|
|
if (never) ; \
|
||
|
|
end
|