Advertisement
Guest User

Untitled

a guest
Jan 5th, 2019
23,844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module taiwan_consensus(
  2.     input reg [1:0] num_countries,
  3.     input reg [1:0] num_political_systems,
  4.     output reg accept
  5.     input reg clk
  6. );
  7.  
  8. always @(posedge clk) begin
  9.   case ({num_countries, num_political_systems})
  10.     01_01: accept <= 0 // We are NOT part of China!
  11.     01_10: accept <= 0 // say NO to "one country, two systems"!
  12.     10_10: accept <= 1 // hell yeah!
  13.     default: accept <= 0
  14.   endcase
  15. end
  16.  
  17. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement