case statement with repeatation

Status
Not open for further replies.

sun_ray

Advanced Member level 3
Joined
Oct 3, 2011
Messages
772
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Visit site
Activity points
6,828
Look at the following case


case (s)

2'b00 y = 1'b1;
2'b00 y = 1'b0;
2'b01 y = 1'b1;
2'b10 y = 1'b0;
2'b11 y = 1'b1;

The case item condition 2'b00 is provided twice.

How will it appear to the simulator and how will it appear to the synthesis tool?

I hear simulator will ignore the second occurence of 2'b00 but synthesis will take care of both the occurence of 2'b00.
 

Synthesis tool like Cadence-RC generates an error, not allow.
for Modelsim for example, you could add the parameters "-check_synthesis" during the compilation for simulation which check this king of "error".
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…