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.

Verilog case and if else

Status
Not open for further replies.

ikru26

Banned
Joined
Feb 1, 2005
Messages
97
Helped
8
Reputation
16
Reaction score
7
Trophy points
1,288
Location
INDIA
Activity points
0
if we use a

1)if and else if statement in verilog for generating a multiplexer and synthesize the code
what will be the output looks like..

will it be a priority encoder or a Mux.

2) Do we need to declare the output of a assignment statement as wire incase of a combinational circuit

3) Do we need to declare the output of a assignment statement ( non blocking ) of a sequential circuit
 

1)if and else may result in priority encoder or mux.
that depends upon no of branches u have.
2)no need to declare as wire.
3)u have to declare as reg.
 

1)if the case items in a case are mutualy exclusive then it will form a mux,otherwise it will form priority structure
2)declare it as wire
3)declare as reg
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top