projects
/
sv2nmigen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
always_comb: handle if/else blocks
[sv2nmigen.git]
/
examples
/
always_comb.sv
diff --git
a/examples/always_comb.sv
b/examples/always_comb.sv
index aa4975d303728ac39443dbc456df0dbc81eba945..2b57ac1f67497df2934c3213b3129f16922d403b 100644
(file)
--- a/
examples/always_comb.sv
+++ b/
examples/always_comb.sv
@@
-12,6
+12,10
@@
always_comb begin : HIT_CHECK
cache_coherent_if = 1;
end else begin
cache_coherent_else = 0;
+ if(cond2) out_addr = 1;
+ if(cond3) begin
+ out_addr = 2;
+ end
end
end