Advertisement
aidanozo

Untitled

Nov 12th, 2024
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module ac_detector (
  2.     output wire o_w_out,    // iesirea este activata (1) cand secventa "AC" este gasita
  3.     input wire i_w_in,      // 0 - 'a', 1 - 'c'
  4.     input wire i_w_clk,    
  5.     input wire i_w_reset    
  6. );
  7.  
  8.     localparam STATE_INITIAL = 2'b00;  
  9.     localparam STATE_A       = 2'b01;  
  10.     localparam STATE_AC      = 2'b10;  
  11.  
  12.     // Implementati logica automatului
  13.  
  14. endmodule
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement