Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Urgent :)

Altera_Forum
Honored Contributor II
1,559 Views

Hi everyone, for a project I was given my specs. 

'Implement a shifter with combinational logic than can carry out the following tasks. The shifters functionality should be verified with a ModelSim testbench'. 

 

Control 0: 4-bit value will be shifted left by the number of places specified by a 2-bit value 

 

Control 1: 4-bit value will be rotated right by the number of places specified by a 2-bit value. 

 

Havent a clue, so if anyone knows a similar program, do tell  

 

Cheers.
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
866 Views

well you have 3 inputs. 

 

a 4 bit output value 

a 2 bit "shift by X value 

and an direction bit 

 

I would have thought that was pretty self explanitory - exactly what are you stuck on?
0 Kudos
Altera_Forum
Honored Contributor II
866 Views

Well we hardly have got an introduction to vhdl at all. Like we've only been at it for 2 weeks and he gives us a assignment like that, I haven't a clue even really on how to start it. So I'm stumped for every section!

0 Kudos
Altera_Forum
Honored Contributor II
866 Views

I suggest getting a good VHDL tutorial or text book (dont you have libraries on campus)?

0 Kudos
Altera_Forum
Honored Contributor II
866 Views

Try drawing a circuit diagram on paper using and/or/nor/etc. gates. It should get you close if you are using schematic entry. 

 

Otherwise, if you are programming in VHDL or Verilog, look for a good template to start with. I do agree with Tricky though, a good book is a wonderful thing.
0 Kudos
Altera_Forum
Honored Contributor II
866 Views

Yeah a book is a great thing but ive left it sort of late haha. Due today. 

if anyone has a code, you know where i am lol
0 Kudos
Altera_Forum
Honored Contributor II
866 Views

Lol - enjoy the fail.

0 Kudos
Altera_Forum
Honored Contributor II
866 Views

haha cheers :P

0 Kudos
Reply