Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

VHDL: DE2 Lab4 part1

Hello,

I'm trying to follow lab 4, but am having problems. I was just told that my TFF was garbage, and it was pretty poetic, I wish i could post it for comic-relief, but anyway, I'd like to ask what you guys think of my TFF

entity myTFF is 
        port( T, Clk, Reset     : in std_logic; 
                        Q                       : out std_logic 
        ); 
end myTFF; 
architecture behavioral of myTFF is 
        signal buf : std_logic; 
begin 
        process(T, Clk, Reset) 
        begin 
                if(reset = '1') then 
                        buf <= '0'; 
                end if; 
                if(Clk = '1') then 
                        if(T = '1')then 
                                buf <= (NOT buf); 
                        end if; 
                end if; 
        end process; 
        Q <= buf; 
end behavioral; 

would love some feedback

thanks

malik

13 Replies