convert always_comb assignments
[sv2nmigen.git] / examples / always_comb.sv
diff --git a/examples/always_comb.sv b/examples/always_comb.sv
new file mode 100644 (file)
index 0000000..aa4975d
--- /dev/null
@@ -0,0 +1,18 @@
+module always_comb_test(
+    output first_hit,
+    output multi_hit
+);
+
+always_comb begin : HIT_CHECK
+    first_hit      =  0;
+    multi_hit      =  0;
+    out_addr       =  0;
+    cache_coherent =  1;
+    if(cond) begin
+       cache_coherent_if =  1;
+    end else begin
+       cache_coherent_else =  0;
+    end
+end
+  
+endmodule