Download chips/yosys/tests/simple/dynslice.v from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/simple/dynslice.v
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/simple/dynslice.v
-
curl -L -o dynslice.v https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/simple/dynslice.v
207 Bytes
| module dynslice ( | |
| input clk , | |
| input [9:0] ctrl , | |
| input [15:0] din , | |
| input [3:0] sel , | |
| output reg [127:0] dout | |
| ); | |
| always @(posedge clk) | |
| begin | |
| dout[ctrl*sel+:16] <= din ; | |
| end | |
| endmodule | |