Prev Problem
Next Problem

83. T Flip-Flop

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

Code

module t_ff (
    input  CLK,
    input  T,
    output reg Q
);
always @(posedge CLK)begin
    case(T)
    1'b0:Q<=Q;
    1'b1:Q<=~Q;
    endcase
end
// Write your code here

endmodule

 

Was this helpful?
Upvote
Downvote