File: test_simulation_or.v

package info (click to toggle)
yosys 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,084 kB
  • sloc: cpp: 82,579; python: 2,725; yacc: 2,018; sh: 1,516; makefile: 884; lex: 492; perl: 399; ansic: 175; vhdl: 46; tcl: 14
file content (30 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

// test_simulation_or_1_test.v
module f1_test(input [1:0] in, output out);
assign out = in[0] | in[1];
endmodule

// test_simulation_or_2_test.v
module f2_test(input [1:0] in, output out);
assign out = in[0] || in[1];
endmodule

// test_simulation_or_3_test.v
module f3_test(input [2:0] in, output out);
assign out = in[0] | in[1] | in[2];
endmodule

// test_simulation_or_4_test.v
module f4_test(input [2:0] in, output out);
assign out = in[0] || in[1] || in[2];
endmodule

// test_simulation_or_5_test.v
module f5_test(input [3:0] in, output out);
assign out = in[0] | in[1] | in[2] | in[3];
endmodule

// test_simulation_or_6_test.v
module f6_test(input [3:0] in, output out);
assign out = in[0] || in[1] || in[2] || in[3];
endmodule