Advertisement
Guest User

test_corrected.v

a guest
Jul 22nd, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 0.31 KB | Source Code | 0 0
  1. module test(clk, rst_n);
  2.     input clk, rst_n;
  3.     reg STAR;
  4.     localparam S0=0, S1=1;
  5.  
  6.     always @(posedge clk or negedge rst_n)
  7.         if (rst_n==0)
  8.             STAR <= S0;
  9.         else
  10.             casex(STAR)
  11.                 S0: STAR <= S1;
  12.                 S1: STAR <= S0;
  13.             endcase
  14. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement