diff options
Diffstat (limited to 'manual/APPNOTE_011_Design_Investigation/example.v')
-rw-r--r-- | manual/APPNOTE_011_Design_Investigation/example.v | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manual/APPNOTE_011_Design_Investigation/example.v b/manual/APPNOTE_011_Design_Investigation/example.v new file mode 100644 index 000000000..ec272011c --- /dev/null +++ b/manual/APPNOTE_011_Design_Investigation/example.v @@ -0,0 +1,5 @@ +module example(input clk, a, b, c, output reg [1:0] y); +always @(posedge clk) + if (c) + y <= c ? a + b : 2'd0; +endmodule |