Download chips/yosys/tests/various/dynamic_part_select/nonblocking.v from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/various/dynamic_part_select/nonblocking.v
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/various/dynamic_part_select/nonblocking.v
-
curl -L -o nonblocking.v https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/various/dynamic_part_select/nonblocking.v
419 Bytes
| module nonblocking #(parameter WIDTH=32, SELW=1, CTRLW=$clog2(WIDTH), DINW=2**SELW) | |
| (input wire clk, | |
| input wire [CTRLW-1:0] ctrl, | |
| input wire [DINW-1:0] din, | |
| input wire [SELW-1:0] sel, | |
| output reg [WIDTH-1:0] dout); | |
| localparam SLICE = WIDTH/(SELW**2); | |
| always @(posedge clk) begin | |
| dout <= dout + 1; | |
| dout[ctrl*sel+:SLICE] <= din ; | |
| end | |
| endmodule | |