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.

Qn on synthesis of "default" branch in case statem

Status
Not open for further replies.

animotion

Junior Member level 1
Joined
Aug 22, 2009
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Ireland
Activity points
1,428
All,

I have a question on the "default" branch in a Verilog case
statement. Notice that the following case statement features all
outcomes for the case variable "encoded_signal". There is also a
default statement.


always @ (encoded_signal)
begin
case(encoded_signal)
3'b000: decoded_out = 8'b00000000;
3'b001: decoded_out = 8'b00000001;
3'b010: decoded_out = 8'b00000011;
3'b011: decoded_out = 8'b00000111;
3'b100: decoded_out = 8'b00001111;
3'b101: decoded_out = 8'b00011111;
3'b110: decoded_out = 8'b00111111;
3'b111: decoded_out = 8'b01111111;
default: decoded_out = 8'b11111111;
endcase
end


Since every valid outcome for "encoded_signal" is already accounted
for, will the synthesis tool synthesize the default statement? And if
so how?


Could this lead to redundant logic in the synthesized design?


Regards,
animotion
 

Unless causing a syntax error, it would lead to nothing.
 

Re: Qn on synthesis of "default" branch in case st

This is considered as "full_case" and default will not be synthesized .
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top