----------------------------------------------------*Question*------------------------------------------------------------------------- 
Author Message
 ----------------------------------------------------*Question*-------------------------------------------------------------------------

I have a flip flop in VHDL, that has a 32 bit input and a 32 bit output.  I need this 32 bit flip flop to
instantiated 32 times.  Is there a way I can use the generate command, or some kind of an array statement to generate
32, 32 bit flip flops.  The code below is of ONE 32 bit flip flop.  I need to implement 32 of them (flop0 - flop31)
each containing q0 - q31 and d0 - d31.  There has to be an easy way to do this.

--just one flip flop
entity flop is
     port (
            reset_n                     : in std_logic;
            clk                         : in std_logic;
            d                           : in std_logic_vector(31 downto 0);
            q                           : buffer std_logic_vector(31 downto 0)
          );    
end flop;
architecture behavi{*filter*}of flop is
begin    
flip_flop: process(reset_n, clk, q)
begin
        if (reset_n = '0') then
                q <= (others => '0');
        elsif (clk = '1' and clk'event) then
                q <= d;
        end if;
end process;
end behavioral;



Fri, 28 May 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. second_hand-new_2003_year?-NO!-Send_FREE-_-RUSSIA_614104_PERM_MOLDAVAN_4_OF_11_GLOBA_IVAN_expenses pay!_LOT_GRUISE_RUSSIA_YOUR

2. +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________e45u89et rijeetoeirtj erioyopwij45o rtio

3. SCAM Re: +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________ertopi4509foi eroirtjyiort iryhwoiuri r

4. +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________e45u89et rijeetoeirtj erioyopwij45o rtio

 

 
Powered by phpBB® Forum Software