Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module taiwan_consensus(
- input reg [1:0] num_countries,
- input reg [1:0] num_political_systems,
- output reg accept
- input reg clk
- );
- always @(posedge clk) begin
- case ({num_countries, num_political_systems})
- 01_01: accept <= 0 // We are NOT part of China!
- 01_10: accept <= 0 // say NO to "one country, two systems"!
- 10_10: accept <= 1 // hell yeah!
- default: accept <= 0
- endcase
- end
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement