mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-25 00:22:34 +00:00
Add lut2bmux, annotate_unqcoef, and seed tests
This commit is contained in:
parent
3f00e57076
commit
f488b0e74c
4 changed files with 308 additions and 0 deletions
24
tests/silimate/annotate_unqcoef.ys
Normal file
24
tests/silimate/annotate_unqcoef.ys
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
log -header "Simple reduce_or annotation"
|
||||
log -push
|
||||
design -reset
|
||||
read_verilog <<EOF
|
||||
module top (
|
||||
input wire [3:0] a,
|
||||
output wire [1:0] x
|
||||
);
|
||||
assign x[0] = |a[2:0];
|
||||
assign x[1] = |a;
|
||||
endmodule
|
||||
EOF
|
||||
check -assert
|
||||
|
||||
# Annotate uniqueness coefficients
|
||||
annotate_unqcoef
|
||||
|
||||
# Check uniqueness coefficients are correct
|
||||
# TODO
|
||||
|
||||
write_verilog test.v
|
||||
|
||||
design -reset
|
||||
log -pop
|
||||
Loading…
Add table
Add a link
Reference in a new issue