3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

Merge branch 'YosysHQ:master' into main/issue2525

This commit is contained in:
Muthiah Annamalai (முத்து அண்ணாமலை) 2023-05-16 21:21:32 -07:00 committed by GitHub
commit 693c609eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 2505 additions and 57 deletions

View file

@ -0,0 +1,20 @@
module top
(
input [4:0] x,
input [4:0] y,
output lt,
output le,
output gt,
output ge,
output eq,
output ne
);
assign lt = x < y;
assign le = x <= y;
assign gt = x > y;
assign ge = x >= y;
assign eq = x == y;
assign ne = x != y;
endmodule

View file

@ -0,0 +1,9 @@
read_verilog compare.v
hierarchy -top top
proc
equiv_opt -assert -map +/gowin/cells_sim.v synth_gowin # equivalency check
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
cd top # Constrain all select calls below inside the top module
select -assert-count 5 t:ALU

View file

@ -0,0 +1,8 @@
library(fake) {
cell(bugbad) {
bundle(X) {
members(x1, x2);
power_down_function : !a+b ;
}
}
}