Skip to content

Commit

Permalink
fix get_packed_command_width at use_byte_enable=1
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoya Hatta committed Feb 26, 2024
1 parent 397ad7e commit e38417d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pzcorebus_common/pzcorebus_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,13 @@ package pzcorebus_pkg;
width += get_length_width(bus_config, 0);
// minfo
width += get_request_info_width(bus_config, 0);
// mdata
width += (is_csr_profile(bus_config)) ? bus_config.data_width : 0;

if (is_csr_profile(bus_config)) begin
// mdata
width += bus_config.data_width;
// mdata_byteen
width += get_byte_enable_width(bus_config, 0);
end

return width;
endfunction
Expand All @@ -373,7 +378,7 @@ package pzcorebus_pkg;
// mdata
width += bus_config.data_width;
// mdata_byteen
width += get_byte_enable_width(bus_config, typedef_width);
width += get_byte_enable_width(bus_config, 0);
// mdata_last
width += 1;

Expand Down

0 comments on commit e38417d

Please sign in to comment.