yosys/tests/simple/dynslice.v

13 lines
207 B
Coq
Raw Normal View History

2020-03-31 13:51:31 -05:00
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