Sunteți pe pagina 1din 1

begin process(clk) begin if clk' event and clk='1' then if rst='1' then q<='0'; else q<=d; end if;

end Behavioral;

library I ; !se I "#$%&'()I*&11+,"-''; !se I "#$%&'()I*&-.I$/"-''; !se I "#$%&'()I*&01#I)1 %"-''; 2222 0nco33ent the follo4ing library declaration if instantiating 2222 any 5ilin6 pri3itives in this code" 22library 01I#I7; 22!se 01I#I7"8*o3ponents"all; entity dffvhdl is 9ort ( d : in #$%&'()I*; clk : in #$%&'()I*; rst : in #$%&'()I*; q : o!t #$%&'()I*); end dffvhdl; architect!re Behavioral of dffvhdl is begin process(clk) begin if clk' event and clk='1' then if rst='1' then q<='0'; else q<=d; end if; end if; end process;

end Behavioral;

S-ar putea să vă placă și