Download chips/yosys/tests/opt/opt_clean_init.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/opt_clean_init.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/opt/opt_clean_init.ys
-
curl -L -o opt_clean_init.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/opt_clean_init.ys
238 Bytes
| read_verilog << EOT | |
| module top(...); | |
| input [1:0] D; | |
| input C; | |
| output O; | |
| reg [1:0] Q; | |
| initial Q = 0; | |
| always @(posedge C) | |
| Q <= D; | |
| assign O = Q[1]; | |
| endmodule | |
| EOT | |
| synth | |
| check -assert -initdrv | |
| select -assert-count 1 a:init=2'b0x | |