blob: 7286d13416af8d5caa8a81d27c416e33353cc9a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// test_simulation_xnor_1_test.v
module f1_test(input [1:0] in, output out);
assign out = ~(in[0] ^ in[1]);
endmodule
// test_simulation_xnor_2_test.v
module f2_test(input [2:0] in, output out);
assign out = ~(in[0] ^ in[1] ^ in[2]);
endmodule
// test_simulation_xnor_3_test.v
module f3_test(input [3:0] in, output out);
assign out = ~(in[0] ^ in[1] ^ in[2] ^ in[3]);
endmodule
// test_simulation_xnor_4_test.v
module f4_test(input [3:0] in, output out);
xnor myxnor(out, in[0], in[1], in[2], in[3]);
endmodule
|