Changeset 8206

Show
Ignore:
Timestamp:
08/26/08 13:10:14 (5 years ago)
Author:
mcarrick
Message:

removing delay function, now just a simple d flip flop

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/mcarrick/VHDL/reg/reg.vhd

    r8203 r8206  
    11-- Register implementation 
    22-- 
    3 -- Acts as a single delay. When a value is passed in, it is 
    4 -- held for a clock period before appearing on the output. 
    5 -- Resetting the circuit sets the held value and the output 
    6 -- to zero. 
     3-- The circuit is a simple D flip flop implementation. 
    74-- 
    85-- The circuit is scalable to the number of bits the register 
     
    2825architecture register_behav of reg is 
    2926 
    30 signal reg : std_logic_vector(numBits-1 downto 0); 
    31  
    3227begin 
    3328        process(clock) 
     
    3631                        if (chipEnable = '1') then -- only activate circuit when chip enable'd 
    3732                                if (reset = '1') then 
    38                                         reg <= (others => '0'); -- reset register value to zero 
    3933                                        dataOut <= (others => '0'); -- reset output value to zero 
    4034                                elsif (reset = '0') then 
    41                                         dataOut <= reg; 
    42                                         reg <= dataIn; 
     35                                        dataOut <= dataIn; 
    4336                                end if; 
    4437                        end if; 
     
    5245 
    5346 
     47