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