always_comb: handle if/else blocks
[sv2nmigen.git] / examples / always_comb.sv
index aa4975d303728ac39443dbc456df0dbc81eba945..2b57ac1f67497df2934c3213b3129f16922d403b 100644 (file)
@@ -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