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.

which default is taken in a case block inside an always_comb

Status
Not open for further replies.

stanford

Full Member level 2
Joined
Feb 16, 2014
Messages
132
Helped
4
Reputation
8
Reaction score
6
Trophy points
1,298
Activity points
2,223
When the case condition is not met, will the value of a get default0 or default1?

always_comb begin

a = default0;

case (state)
....
....
default: a = default1;
endcase

end
 

When the case condition is not met, will the value of a get default0 or default1?

always_comb begin

a = default0;

case (state)
....
....
default: a = default1;
endcase

end

should be default1
 

The final assignment wins.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top