Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > vhdl left register

Reply
Thread Tools

vhdl left register

 
 
CS_ CS_ is offline
Junior Member
Join Date: Dec 2009
Posts: 3
 
      12-06-2009
can anyone solve this



Write the VHDL Code for a 16-bit shift left register
 
Reply With Quote
 
 
 
 
jeppe jeppe is offline
Senior Member
Join Date: Mar 2008
Location: Denmark
Posts: 346
 
      12-06-2009
Hi

Find inspiration in this:

Code:
process( clk)
begin
     if rising_edge( Clk) then
        if reset='1' then
             Shreg <= (others=>'0');
        else
             Shreg <= Shreg( 14 downto 0) & Databit;
        end if;
    end if;
end process;
 
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
[ANN/ADV] Only TWO WEEKS left to register for the Ruby Hoedown! Jeremy McAnally Ruby 0 07-25-2008 09:59 PM
Help on table align on left of page vs left hanging indent =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= XML 2 07-16-2007 11:46 AM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
Left panel on left hand side of desktop on windows xp wish to get rid of Bun Mui Computer Support 1 09-14-2004 03:40 AM
RubyConf Reminder: One Week left to register! Chad Fowler Ruby 0 10-17-2003 12:19 PM



Advertisments