Download chips/yosys/tests/opt/bug6484.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/bug6484.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/opt/bug6484.ys
-
curl -L -o bug6484.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/bug6484.ys
448 Bytes
| read_verilog <<EOT | |
| module top(input signed [2:0] sh, output [1:0] y); | |
| assign y = (sh >= 0) ? ((sh > 2) ? 2'h3 : (2'd1 << sh)) : (2'd1 >> -sh); | |
| endmodule | |
| EOT | |
| proc | |
| copy top merged | |
| # alumacc makes the negation an $alu with an empty A port | |
| alumacc merged | |
| share -aggressive merged | |
| select -assert-count 2 merged/t:$alu | |
| opt_clean merged | |
| miter -equiv -flatten -make_assert top merged miter | |
| sat -verify -prove-asserts -set-def-inputs -enable_undef miter | |