mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 01:16:16 +00:00
Added splice command
This commit is contained in:
parent
08aa1062b4
commit
244e8ce1f4
4 changed files with 281 additions and 0 deletions
14
tests/sat/splice.v
Normal file
14
tests/sat/splice.v
Normal file
|
@ -0,0 +1,14 @@
|
|||
module test(a, b, y);
|
||||
|
||||
input [15:0] a, b;
|
||||
output [15:0] y;
|
||||
|
||||
wire [7:0] ah = a[15:8], al = a[7:0];
|
||||
wire [7:0] bh = b[15:8], bl = b[7:0];
|
||||
|
||||
wire [7:0] th = ah + bh, tl = al + bl;
|
||||
wire [15:0] t = {th, tl}, k = t ^ 16'hcd;
|
||||
|
||||
assign y = { k[7:0], k[15:8] };
|
||||
|
||||
endmodule
|
14
tests/sat/splice.ys
Normal file
14
tests/sat/splice.ys
Normal file
|
@ -0,0 +1,14 @@
|
|||
read_verilog splice.v
|
||||
hierarchy -check; opt
|
||||
copy test gold
|
||||
|
||||
cd test
|
||||
splice
|
||||
# show
|
||||
|
||||
cd ..
|
||||
rename test gate
|
||||
miter -equiv -make_assert -make_outputs gold gate miter
|
||||
|
||||
flatten miter
|
||||
sat -verify -prove-asserts -show-inputs -show-outputs miter
|
Loading…
Add table
Add a link
Reference in a new issue