Generated by EASE/HDL for peterj on Mon Jul 02 11:00:55 2007 |
![]() |
![]() |
![]() |
![]() |
Contents | Side Data | Generated HDL |
1 -- EASE/HDL begin -------------------------------------------------------------- 2 -- 3 -- Architecture 'a0' of entity 'RegPstEn'. 4 -- 5 -------------------------------------------------------------------------------- 6 -- 7 -- Copy of the interface declaration: 8 -- 9 -- generic( 10 -- n : positive := 8); 11 -- port( 12 -- Clk : in std_logic; 13 -- D : in std_logic_Vector(n-1 downto 0); 14 -- En_n : in std_logic; 15 -- Pst_n : in std_logic; 16 -- Q : out std_logic_Vector(n-1 downto 0)); 17 -- 18 -- EASE/HDL end ---------------------------------------------------------------- 19 20 architecture a0 of RegPstEn is 21 22 BEGIN 23 Process (Clk, Pst_n) 24 Begin 25 If Pst_n = '0' Then 26 Q <= (others => '1'); 27 ElsIf Rising_Edge(Clk) Then 28 If En_n = '0' Then 29 Q <= D; 30 End If; 31 End If; 32 End Process; 33 end architecture a0 ; -- of RegPstEn 34