Download chips/yosys/tests/proc/bug_1268.v from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/proc/bug_1268.v
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/proc/bug_1268.v
-
curl -L -o bug_1268.v https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/proc/bug_1268.v
421 Bytes
| module gold (input clock, ctrl, din, output reg dout); | |
| always @(posedge clock) begin | |
| if (1'b1) begin | |
| if (1'b0) begin end else begin | |
| dout <= 0; | |
| end | |
| if (ctrl) | |
| dout <= din; | |
| end | |
| end | |
| endmodule | |
| module gate (input clock, ctrl, din, output reg dout); | |
| always @(posedge clock) begin | |
| if (1'b1) begin | |
| if (1'b0) begin end else begin | |
| dout <= 0; | |
| end | |
| end | |
| if (ctrl) | |
| dout <= din; | |
| end | |
| endmodule | |