Advertisement
Kireychik

clock_tb.sv

May 15th, 2020
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module clock_tb;
  2. logic tc = 0;
  3. logic [5:0] tsec = 6'd0;
  4. logic [5:0] tmin = 6'd0;
  5. logic [4:0] thour = 5'd0;
  6.  
  7. always #5e8 tc = ~tc;
  8.  
  9. Clock tb (
  10.     .c(tc),
  11.     .sec(tsec),
  12.     .min(tmin),
  13.     .hours(thour)
  14. );
  15.  
  16. initial begin
  17.     $finish();
  18. end
  19.  
  20. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement