Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - An easy question for everyone

 
Thread Tools Search this Thread
Old 05-02-2005, 02:02 PM   #1
Default An easy question for everyone


In the following code what does >> represent?

{
do
{
a = In1;
b = In2;
}until (start);

t1 = mod(a);
t2 = mod(b);
x = max(t1,t2);
y = min(t1,t2);
t3 = x >> 3;
t4 = y >> 1;
...
...
}

I`m not bothered about the purpose of the code but what does "t3 = x >>
3" mean?
Is t3 = 1 when x > 3
and t3 = 0 when x < 3?


Thanks,

p.s. quick response please I have an exam on this subject very soon!!!



Simon.Tiplady@gmail.com
  Reply With Quote
Old 05-02-2005, 02:54 PM   #2
Simon.Tiplady@gmail.com
 
Posts: n/a
Default Re: An easy question for everyone
Oops silly me, its just a shift function.

x>>3 shifts the binary complement number 3 to the right
y>>1 shifts 1 position to the right

Simon



Simon.Tiplady@gmail.com
  Reply With Quote
Old 05-02-2005, 03:01 PM   #3
Ralf Hildebrandt
 
Posts: n/a
Default Re: An easy question for everyone
wrote:

> In the following code what does >> represent?


Shift right. 2nd operand is the number of bits to shift.

Ralf


Ralf Hildebrandt
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy question about pc freeze Talofa General Help Related Topics 3 02-06-2009 04:19 AM
Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good God DVD Video 3 04-25-2005 04:19 PM
Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good Filthy Mcnasty DVD Video 0 04-25-2005 04:29 AM
Press Release - Visual CertExam Suite Makes It Easy to Create and Take Professional Practice Tests David Johnson A+ Certification 0 10-19-2004 05:03 PM
Newbie -> Easy question I am sure Sean Berry DVD Video 4 07-17-2004 06:04 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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