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.

Use of a Multiplexer to solve this problem?

Status
Not open for further replies.

tcowlin

Newbie level 3
Joined
Nov 20, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Essentially, Im unsure whether or not a Multiplexer is the tool I want to use in order to solve this problem within Verilog. Basically, if the input of y is 0, 1, 8, 15 so 0000, 0001, 1000 etc, it bit shifts a 28-bit X, one time to the left, else, it shifts it two bits to the left.

My question is really, is a multiplexer a solution for this problem.

Im not looking for coded solutions, merely whether a multiplexer can be used to solve this problem, where the input is only a 28bit unsigned X and a 4bit unsigned Y.


Cheers!.

T. Cowlin.
 

You can place embedded codes for Verilog, so you can still use the "if-else" statement for Verilog to solve your problem without the need for a multiplexer. See
 

it sounds like it is just a 2 to 1 mux. a 1 or 2 bit shift. all the mux will do is select which one.
 

Any potential clues for the gate level code required, even just a hint on how to start! :)
 

Bump. Any hints or tips to start perhaps :) It must be gate level, thus a Mux.
 

a mux is just 2 AND gates and an OR gate. (multiplied by the number of bits the inputs are. One set for each bit.)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top