mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 03:10:26 +00:00
Added smtc "final" statement
This commit is contained in:
parent
7500b403de
commit
adcda6817e
5 changed files with 86 additions and 9 deletions
13
examples/smtbmc/demo4.v
Normal file
13
examples/smtbmc/demo4.v
Normal file
|
@ -0,0 +1,13 @@
|
|||
// Demo for "final" smtc constraints
|
||||
|
||||
module demo4(input clk, rst, inv2, input [15:0] in, output reg [15:0] r1, r2);
|
||||
always @(posedge clk) begin
|
||||
if (rst) begin
|
||||
r1 <= in;
|
||||
r2 <= -in;
|
||||
end else begin
|
||||
r1 <= r1 + in;
|
||||
r2 <= inv2 ? -(r2 - in) : (r2 - in);
|
||||
end
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue