-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Anton Blanchard <[email protected]>
- Loading branch information
1 parent
223b94c
commit b5a8534
Showing
6 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
yosys -import | ||
|
||
read_verilog -defer gold/carry_adder.v | ||
chparam -set BITS $::env(BITS) gold_carry_adder | ||
prep -flatten -top gold_carry_adder | ||
splitnets -ports | ||
design -stash gold | ||
|
||
read_verilog $::env(VERILOG) $::env(PROCESS_VERILOG) | ||
prep -flatten -top adder | ||
splitnets -ports | ||
design -stash gate | ||
|
||
design -copy-from gold -as gold gold_carry_adder | ||
design -copy-from gate -as gate adder | ||
equiv_make gold gate equiv | ||
prep -flatten -top equiv | ||
|
||
opt_clean -purge | ||
#show -prefix equiv-prep -colors 1 -stretch | ||
|
||
opt -full | ||
equiv_simple | ||
equiv_induct | ||
equiv_status -assert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module gold_carry_adder | ||
#( | ||
parameter BITS=64 | ||
) ( | ||
`ifdef USE_POWER_PINS | ||
input VPWR, | ||
input VGND, | ||
`endif | ||
input [BITS-1:0] a, | ||
input [BITS-1:0] b, | ||
input carry_in, | ||
output [BITS-1:0] o, | ||
output carry_out | ||
); | ||
assign {carry_out, o} = a + b + carry_in; | ||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters