Skip to content

Commit

Permalink
Fixed assign statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosHirsl authored and fischeti committed Jul 17, 2024
1 parent df4349e commit bf5228b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified target/snitch_cluster/test/bootrom.elf
Binary file not shown.
2 changes: 1 addition & 1 deletion target/snitch_cluster/test/bootrom.sv
Original file line number Diff line number Diff line change
Expand Up @@ -65562,7 +65562,7 @@
localparam int unsigned NumBytes = DataWidth/8;
localparam int unsigned WordOffset = $clog2(NumBytes);
logic [BootromSize/NumBytes-1:0][DataWidth-1:0] rom_word_addressed;
assign rom_word_addressed = rom[65536-1:(65536-1)-BootromSize];
assign rom_word_addressed = rom[BootromSize-1:0];

logic [$clog2(BootromSize)-1:WordOffset] aligned_address;

Expand Down
2 changes: 1 addition & 1 deletion target/snitch_cluster/test/gen_bootrom_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def assign_word():
localparam int unsigned NumBytes = DataWidth/8;
localparam int unsigned WordOffset = $clog2(NumBytes);
logic [BootromSize/NumBytes-1:0][DataWidth-1:0] rom_word_addressed;
assign rom_word_addressed = rom[{gen_size}-1:({gen_size}-1)-BootromSize];
assign rom_word_addressed = rom[BootromSize-1:0];
logic [$clog2(BootromSize)-1:WordOffset] aligned_address;
Expand Down

0 comments on commit bf5228b

Please sign in to comment.