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.

generic shift register

Status
Not open for further replies.

satyandra.sharad

Newbie level 1
Joined
Dec 1, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
shall i use generic shift register as n samples delay element, if no then how can i write vhdl code for n samples delay element
 

process (main_clk_100meg)
begin
if (main_clk_100meg'event and main_clk_100meg = '1')
then
a_1<= a_0;
a_2<= a_1;
-----------------------------
a_n <= a_n-1;
end if;
end process ;
 

or even neater:

Code:
process(clk)
begin
  if rising_edge(clk) then
    a <= a(a'high-1 downto 0) & ip;
  end if;
end process;
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top