Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Can you give some idea about the question?

Reply
Thread Tools

Can you give some idea about the question?

 
 
zidong
Guest
Posts: n/a
 
      10-05-2010
Design a circuit that has the following function:

If C=00: shift A one step to the left (“shift in” ’0’ on LSB)

If C=01: shift A one step to the right (“shift in” ’0’ on MSB)

If C =10: rotate A one step left

If C=11: rotate A one step right

Input: A (std_logic_vector(7 downto 0))

C (std_logic_vector(1 downto 0)

Output: Z (std_logic_vector(7 downto 0)) – the result of the shifting
or rotation of

A

thanks in advance.
 
Reply With Quote
 
 
 
 
Tricky
Guest
Posts: n/a
 
      10-05-2010
On 5 Oct, 07:10, zidong <zidong.m...@gmail.com> wrote:
> Design a circuit that has the following function:
>
> If C=00: shift A one step to the left (“shift in” ’0’ on LSB)
>
> If C=01: shift A one step to the right (“shift in” ’0’ on MSB)
>
> If C =10: rotate A one step left
>
> If C=11: rotate A one step right
>
> Input: A (std_logic_vector(7 downto 0))
>
> C (std_logic_vector(1 downto 0)
>
> Output: Z (std_logic_vector(7 downto 0)) – the result of the shifting
> or rotation of
>
> A
>
> thanks in advance.


Heres a good start:

library ieee;
use ieee.std_logic_1164.all;

entity some_bloke_on_the_internet_did_my_assignment_for_m e is
port (
A : in std_logic_vector(7 downto 0);
C : in std_logic_vector(1 downto 0);

Z : out std_logic_vector(7 downto 0)
);
end entity some_bloke_on_the_internet_did_my_assignment_for_m e;

architecture I_wrote_this_bit of
some_bloke_on_the_internet_did_my_assignment_for_m e is
begin
--place your code here - come back when you get stuck
end architecture I_wrote_this_bit;
 
Reply With Quote
 
 
 
 
Andy
Guest
Posts: n/a
 
      10-05-2010
I think it is a very nice question.

Andy
 
Reply With Quote
 
KJ
Guest
Posts: n/a
 
      10-05-2010
On Oct 5, 9:30*am, Andy <jonesa...@comcast.net> wrote:
> I think it is a very nice question.
>
> Andy


Except for the subject line, I didn't see any question. A bait-and-
switch from my view. But maybe a question could have been a very nice
question. I wonder if the OP is simulating new dance moves?

KJ
 
Reply With Quote
 
backhus
Guest
Posts: n/a
 
      10-08-2010
On 5 Okt., 17:07, KJ <kkjenni...@sbcglobal.net> wrote:
> On Oct 5, 9:30*am, Andy <jonesa...@comcast.net> wrote:
>
> > I think it is a very nice question.

>
> > Andy

>
> Except for the subject line, I didn't see any question. *A bait-and-
> switch from my view. *But maybe a question could have been a very nice
> question. *I wonder if the OP is simulating new dance moves?
>
> KJ


Hi KJ,
dance move generator, what a brilliant idea!
Take four of these connected to random generators (two legs * x/y
position),
and don't forget the twister(tm)-detector to avoid impossible moves.
With some input (3x3 step mat) and output stuff(3x3 LED) you can put a
dance game into a single CPLD.

More simple minds would suspect this assignment to be an
implementation of the shift execution block of some simple processor
core.
The two bits of C could be part of the opcode, so all rotate/shift
commands can use a common opcode, that differs only by these two bits.
But how boring sounds that....


Have a nice synthesis
Eilert
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have no idea, you didn't say what country state or city you're in and you can't even write a proper post anyways. richard Computer Support 7 08-01-2010 09:12 PM
pls give me some idea about parsing in java Anindya Java 4 04-13-2008 03:47 PM
strange viewstate problem , please give me some idea. thanks davidw ASP .Net 0 02-08-2006 01:14 AM
Give us 3 minutes; we give you the whole library lib Computer Support 1 02-04-2005 03:16 AM
Give us 3 minutes; we give you the whole library lib Computer Support 0 01-27-2005 07:52 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57