Advertisement
1WaKa_WaKa1

freq_divider_tb

Apr 6th, 2023
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `timescale 1ns / 1ps
  2.  
  3. module freq_divider_tb;
  4.  
  5. reg clock;
  6. wire clock_out;
  7.  
  8. freq_divider freq_div (
  9.     .clk (clock),
  10.     .clk_out (clock_out)
  11. );
  12.  
  13. integer i;
  14.  
  15. initial begin
  16.     i = 0;
  17.     clock = 0;
  18.     for (i = 0 ; i < 30 ; i = i + 1) begin
  19.         #5 clock = ~clock;
  20.         #5 clock = ~clock;
  21.     end
  22. end
  23. endmodule
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement