Skip to content

Commit

Permalink
fix wrong width calcuration
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed May 30, 2024
1 parent 5723ab0 commit 1542ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pzcorebus_common/pzcorebus_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ package pzcorebus_pkg;
shortint width;

if (is_memory_h_profile(bus_config)) begin
width = $clog2(bus_config.max_burst_length / bus_config.unit_data_width);
width = $clog2(bus_config.max_data_width / bus_config.unit_data_width);
end
else begin
width = 0;
Expand Down

0 comments on commit 1542ac7

Please sign in to comment.