Download chips/yosys/tests/techmap/bufnorm.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/bufnorm.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/techmap/bufnorm.ys
-
curl -L -o bufnorm.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/bufnorm.ys
243 Bytes
| # Check wires driven by constants are kept | |
| read_verilog <<EOT | |
| module top(output wire [7:0] y); | |
| assign y = 27; | |
| endmodule | |
| EOT | |
| equiv_opt -assert bufnorm | |
| design -load postopt | |
| select -assert-count 1 t:$buf | |
| select -assert-count 1 w:y %ci t:$buf %i | |