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.

how to design 32 bit barrel shifter

Status
Not open for further replies.

sunilraj.papu

Newbie
Joined
May 8, 2016
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
21
hi everyone

we need to design 32-bit barrel shifter using 2x1 mux and 8x1 mux which can shift right,left, rotate right and left

can anyone provide us block / circuit level implementation or Verilog code for the same
 

can anyone provide us block / circuit level implementation or Verilog code for the same
What!? Is you and your team unwilling to do any work?

I suppose I should inform you that when you get a real job outside of school, you're employer will expect that you are able to do some actual work and not have to resort to edaboard to ask the forum members to do your work for you.

Show your work so far and members will help you with things you get stuck on.
 

Dear ads-ee

thanks for your advice...

let us make few things clear...we are undergraduate students doing Dip. Engg in vlsi system design .its an assignment given by one of crazy faculty to complete within 15days time. which is quite difficuly for our level of understanding...

we appreciate ur view...but before coating something plz think before reacting

Find pic attached for more information

Assign.JPG
 

we appreciate ur view...but before coating something plz think before reacting
Have you even looked at the posts on this forum?

About half of the people who show up ask to be given code for their assignments. If the forum members that actually answer questions, (the first page pretty much sums up all the helpful regulars), were to supply code for every one that asks they would likely spend all their volunteer time on those questions instead of ones where someone actually made an attempt at doing something.

Besides 15 days to do this is more than enough (for a student).

Start by writing a 2-to-1 mux, then an 8-to-1 mux, really come on how hard is that? You can find examples of that code all over the internet, but did you even do that search? Probably NOT.

Don't know what a barrel shifter is? You could of just asked that.
Perhaps you don't know how to use muxes to make a barrel shifter? You could have asked that question.

Instead you ask for prepackaged code all written up by someone so you can hand it in as if it was your own work. :bsdetector:
 

The easy solution is to create a rotate left unit, a rotate right unit, a shift left unit, and a shift right unit and finally an output select mux. This requires no thought. it is simply the creation of a 32:1 mux from 2:1 + 2:1 + 8:1, and then a 4:1 mux from 2:1 + 2:1. from there, you just have to assign the inputs to the muxes, which is boring but easy.

As long as you don't think any harder than this, 15 days will be no problem.

That said, if you are planning to get into logic design this solution should infuriate you -- surely there has to be some way to combine similar functions to generate a smaller/faster circuit.
 

That said, if you are planning to get into logic design this solution should infuriate you -- surely there has to be some way to combine similar functions to generate a smaller/faster circuit.
I don't think that is the point of this assignment. It's more an assignment of how to use smaller blocks to make bigger designs that do something entirely different than the small blocks by combining the pieces in different ways. Sort of like that Tangram puzzle where you can use the pieces to make all kinds of shapes.

- - - Updated - - -

Just out of morbid curiosity I decided to type "barrel shifter design" into google https://lmgtfy.com/?q=barrel+shifter+design and there are a large number of useful results. Including ones that already have code written that the OP could blatantly plagiarize (and perhaps get expelled for doing so :shock:).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top