Files
sv2v/test/core/function_range_cast.sv
Zachary Snow 8f0f8b4afd explicit decl type and expr traversals
- 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
2021-07-11 16:57:33 -04:00

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