blob: 63a0a8b7aa71d59dd8dae09801a53918184d71b9 (
plain)
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
31
32
|
module top(
output logic [5:0] out
);
always_comb begin
out = '0;
case ($bits (out)) 6:
case ($size (out)) 6:
case ($high (out)) 5:
case ($low (out)) 0:
case ($left (out)) 5:
case ($right(out)) 0:
case (6) $bits (out):
case (6) $size (out):
case (5) $high (out):
case (0) $low (out):
case (5) $left (out):
case (0) $right(out):
out = '1;
endcase
endcase
endcase
endcase
endcase
endcase
endcase
endcase
endcase
endcase
endcase
endcase
end
endmodule
|