Download chips/yosys/tests/techmap/bug2972.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/bug2972.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/techmap/bug2972.ys
-
curl -L -o bug2972.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/bug2972.ys
355 Bytes
| read_verilog -specify <<EOT | |
| (* abc9_box, blackbox*) | |
| module box(input clk, d, output reg q, output do); | |
| parameter P = 0; | |
| always @(posedge clk) | |
| q <= d; | |
| assign do = d; | |
| specify | |
| (posedge clk => (q : d)) = 1; | |
| (d => do) = 1; | |
| endspecify | |
| endmodule | |
| module top(input clk, d, output q); | |
| box i1(clk, d, q); | |
| endmodule | |
| EOT | |
| hierarchy | |
| abc9 -lut 4 | |
| abc9 -lut 4 | |