mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 23:43:16 +00:00
Merge pull request #1848 from YosysHQ/eddie/fix_dynslice
ast: simplify to fully populate dynamic slicing case transformation
This commit is contained in:
commit
926a010b49
2 changed files with 13 additions and 1 deletions
12
tests/simple/dynslice.v
Normal file
12
tests/simple/dynslice.v
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue