aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hana/test_simulation_always_19_test.v
blob: 5152781dfd2e554cee78b12dbcea2b29294b808b (plain)
1
2
3
4
5
6
7
8
9
10
11
module test(ctrl, in1,  in2, out);
input ctrl;
input  in1, in2;
output  reg out;

always @ (ctrl or in1 or in2)
	if(ctrl)
		out = in1 & in2;
	else 
		out = in1 | in2;
endmodule