Tb/tff

From HDLBits

tb/tb2Previous

You are given a T flip-flop module with the following declaration:

module tff (
    input clk,
    input reset,   // active-high synchronous reset
    input t,       // toggle
    output q
);

Write a testbench that instantiates one tff and will reset the T flip-flop then toggle it to the "1" state.

Module Declaration

module top_module ();

Write your solution here

Upload a source file...