hcu
Advanced Member level 4
- Joined
- Feb 28, 2017
- Messages
- 101
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 16
- Activity points
- 874
Hi,
I have a doubt about the SystemVerilog code snippet.
where VALUE is a parameter defined as 4, while FACTOR is a local param which is a 2.
How to understand this line
((VALUE[FACTOR-1:0] - {{(FACTOR-1){1'b0}},1'b1})) . Note: No syntax errors.
I have a doubt about the SystemVerilog code snippet.
Code:
sub_top #(
) inst_sub_top (
.count((VALUE[FACTOR-1:0] - {{(FACTOR-1){1'b0}},1'b1})),
.dummy()
);
where VALUE is a parameter defined as 4, while FACTOR is a local param which is a 2.
How to understand this line
((VALUE[FACTOR-1:0] - {{(FACTOR-1){1'b0}},1'b1})) . Note: No syntax errors.