Skip to content

Commit

Permalink
[t1rocket] fix error data length
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Aug 22, 2024
1 parent 9fd2537 commit a930753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t1rocketemu/online_dpi/src/dpi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ unsafe fn load_from_payload(
size: usize,
) -> (Vec<bool>, &[u8]) {
let src = *payload as *mut u8;
let data_width_in_byte = size;
let data_width_in_byte = std::cmp::max(size, 4);
let strb_width_per_byte = if data_width < 64 { 4 } else { 8 };
let strb_width_in_byte = size.div_ceil(strb_width_per_byte);

Expand Down

0 comments on commit a930753

Please sign in to comment.