Advertisement
aidanozo

Untitled

Oct 27th, 2024
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module task0 #(
  2.     parameter p_counter_width = 2
  3. ) (
  4.     output wire o_w_out,    // found output: 0 - not found, 1 - found
  5.     input wire i_w_in,      // char input: 0 - 'a', 1 - 'b'
  6.     input wire i_w_sim_clk, // simulated clk
  7.     input wire i_w_clk,     // clock input
  8.     input wire i_w_reset    // reset input
  9. );
  10.  
  11.     wire l_w_debounced_in;
  12.     wire l_w_debounced_sim_clk;
  13.     debouncer #(
  14.         .p_counter_width(p_counter_width)
  15.         ) l_m_debouncer0(
  16.             .o_w_out(l_w_debounced_in),
  17.             .i_w_in(i_w_in),
  18.             .i_w_clk(i_w_clk),
  19.             .i_w_reset(i_w_reset)
  20.         );
  21.     debouncer #(
  22.         .p_counter_width(p_counter_width)
  23.         ) l_m_debouncer1(
  24.             .o_w_out(l_w_debounced_sim_clk),
  25.             .i_w_in(i_w_sim_clk),
  26.             .i_w_clk(i_w_clk),
  27.             .i_w_reset(i_w_reset)
  28.         );
  29.  
  30.     task01 l_m_task01(
  31.         .o_w_out(o_w_out),
  32.         .i_w_in(l_w_debounced_in),
  33.         .i_w_clk(l_w_debounced_sim_clk),
  34.         .i_w_reset(i_w_reset)
  35.     );
  36. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement