mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
- fix int type conversion not visiting function return type expressions - add node-based traversal for decls visiting top level types and exprs - explicit expr and type recursion in package ident resolution - expose mapBothM traversal helper - avoid double-visiting of decl types in certain conversions
10 lines
245 B
Systemverilog
10 lines
245 B
Systemverilog
module top;
|
|
localparam type T = int unsigned;
|
|
wire [T'(32'sd32) - 1:0] x;
|
|
function automatic [T'(32'sd32) - 1:0] foo;
|
|
input reg [T'(32'sd32) - 1:0] inp;
|
|
foo = inp;
|
|
endfunction
|
|
assign x = foo(1'sb1);
|
|
endmodule
|