likewise
Newbie level 5
- Joined
- Jun 22, 2012
- Messages
- 10
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,372
Hello,
I have a module that uses a function in the combinational logic always block. (How) Can I inspect the internal signals (or variables) of a function in ModelSim?
I have an simplified example of what I intend to do:
function logic inverse(logic x);
logic y;
y = x?0:1;
return y;
endfunction
logic a;
logic b;
always_comb begin: d1_next
b = inverse(a);
end
add wave -noupdate -format Logic -radix unsigned /module_inst/a
add wave -noupdate -format Logic -radix unsigned /module_inst/b
(How) Can I inspect the internal signal or variable 'y' of the function in ModelSim?
add wave -noupdate -format Logic -radix unsigned /module_inst/<...>
I know I can revert to using sub modules instead of functions, and this works, but sometimes I like functions better.
Regards,
Leon.
I have a module that uses a function in the combinational logic always block. (How) Can I inspect the internal signals (or variables) of a function in ModelSim?
I have an simplified example of what I intend to do:
function logic inverse(logic x);
logic y;
y = x?0:1;
return y;
endfunction
logic a;
logic b;
always_comb begin: d1_next
b = inverse(a);
end
add wave -noupdate -format Logic -radix unsigned /module_inst/a
add wave -noupdate -format Logic -radix unsigned /module_inst/b
(How) Can I inspect the internal signal or variable 'y' of the function in ModelSim?
add wave -noupdate -format Logic -radix unsigned /module_inst/<...>
I know I can revert to using sub modules instead of functions, and this works, but sometimes I like functions better.
Regards,
Leon.