projects
/
sv2nmigen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
convert numbers to python format
[sv2nmigen.git]
/
examples
/
always_comb.sv
1
module always_comb_test(
2
output first_hit,
3
output multi_hit
4
);
5
6
always_comb begin : HIT_CHECK
7
first_hit = 0;
8
multi_hit = 0;
9
out_addr = 0;
10
cache_coherent = 1;
11
if(cond) begin
12
cache_coherent_if = 1;
13
end else begin
14
cache_coherent_else = 0;
15
if(cond2) out_addr = 1;
16
if(cond3) begin
17
out_addr = 2;
18
end
19
end
20
end
21
22
endmodule