Download chips/yosys/tests/techmap/bug4349.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/bug4349.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/techmap/bug4349.ys
-
curl -L -o bug4349.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/bug4349.ys
1.37 kB
| read_rtlil <<EOF | |
| attribute \top 1 | |
| module \top | |
| wire input 1 \clk | |
| wire inout 2 \port_b_0__io__io | |
| wire inout 3 \port_b_1__io__io | |
| wire width 8 input 4 \payload | |
| wire width 4 \o | |
| wire width 4 $5 | |
| wire width 2 \o[0] | |
| wire width 2 \o[1] | |
| wire width 2 \o1 | |
| cell \SB_IO \buf0 | |
| parameter \IO_STANDARD "SB_LVCMOS" | |
| parameter \PULLUP 1 | |
| parameter \PIN_TYPE 6'110001 | |
| connect \OUTPUT_CLK \clk | |
| connect \D_OUT_0 \o | |
| connect \D_OUT_1 \o1 | |
| connect \OUTPUT_ENABLE 1'1 | |
| connect \PACKAGE_PIN \port_b_0__io__io | |
| end | |
| cell \SB_IO \buf1 | |
| parameter \IO_STANDARD "SB_LVCMOS" | |
| parameter \PULLUP 1 | |
| parameter \PIN_TYPE 6'110001 | |
| connect \OUTPUT_CLK \clk | |
| connect \D_OUT_0 \o | |
| connect \D_OUT_1 \o1 | |
| connect \OUTPUT_ENABLE 1'1 | |
| connect \PACKAGE_PIN \port_b_1__io__io | |
| end | |
| cell \SB_DFF \dffsb0 | |
| connect \C \clk | |
| connect \D \o | |
| connect \Q \o1 | |
| end | |
| cell \SB_DFF \dffsb1 | |
| connect \C \clk | |
| connect \D \o | |
| connect \Q \o1 | |
| end | |
| cell $dff $dff | |
| parameter \WIDTH 4 | |
| parameter \CLK_POLARITY 1 | |
| connect \D $5 | |
| connect \CLK \clk | |
| connect \Q \o | |
| end | |
| process $1 | |
| assign $5 | |
| assign $5 [3:2] { \payload [6] \payload [7] } | |
| end | |
| connect \o[0] \o [1:0] | |
| connect \o[1] \o | |
| end | |
| EOF | |
| synth_ice40 | |
| logger -expect-no-warnings | |