Download chips/yosys/tests/opt/bug6089.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/bug6089.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/opt/bug6089.ys
-
curl -L -o bug6089.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/bug6089.ys
340 Bytes
| read_verilog -sv <<EOT | |
| module top ( | |
| input logic [1:0] in_2, | |
| output logic [1:0] out_1 | |
| ); | |
| always @* begin | |
| out_1 = 2'd0; | |
| case ('d1 & in_2) | |
| 2'd0: out_1 = 2'd0; | |
| 2'd1: out_1 = in_2; | |
| 2'd2: out_1 = 2'd1; | |
| 2'd3: out_1 = 2'd3; | |
| default: out_1 = 2'd0; | |
| endcase | |
| end | |
| endmodule | |
| EOT | |
| hierarchy -top top | |
| proc | |
| equiv_opt -assert synth | |