Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

case statement with repeatation

Status
Not open for further replies.

sun_ray

Advanced Member level 3
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top