Tff.docx

  • Uploaded by: nilesh maurya
  • 0
  • 0
  • August 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Tff.docx as PDF for free.

More details

  • Words: 57
  • Pages: 2
module df( input t, input clk, input reset, output q ); reg q=1'b0; always @(posedge clk) begin if(reset==1) q<=0; else if(t) q<=~q; else q<=q; end endmodule

module test(

);

reg d,clk,reset; wire q; df f1(d,clk,reset,q); initial clk=1'b0; always # 1 clk=~clk; initial begin reset=1'b1; #10 reset=1'b0; d=1'b0; #10 d=1'b1; #10 reset=1'b0;d=1'b0; #10 d=1'b1; #10 $finish; end endmodule

More Documents from "nilesh maurya"

Tff.docx
August 2019 16
Tt.pdf
November 2019 5
Dsd7_16_1mux[1].docx
August 2019 10
Tt.pdf
November 2019 4
2c00146.pdf
November 2019 16