2019-08-28 20:28:56 -04:00
|
|
|
module top;
|
|
|
|
|
function automatic logic [31:0] nop();
|
|
|
|
|
return 32'h00000013;
|
|
|
|
|
endfunction
|
|
|
|
|
initial $display(nop());
|
2023-11-04 11:36:08 -04:00
|
|
|
function automatic integer flip;
|
|
|
|
|
input integer inp;
|
|
|
|
|
return ~inp;
|
|
|
|
|
endfunction
|
|
|
|
|
initial $display(flip(nop()));
|
2019-08-28 20:28:56 -04:00
|
|
|
endmodule
|