Skip to content

Commit

Permalink
examples/ram: 1R1W - fix missing mask expansion
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Dobrodii <[email protected]>
  • Loading branch information
rdob-ant committed Jul 25, 2023
1 parent 362081e commit 4cbe961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xls/examples/ram.x
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ proc RamModel<DATA_WIDTH:u32, SIZE:u32, WORD_PARTITION_SIZE:u32={u32:0},
}
} else { mem[read_req.addr] };
let read_resp_value = ReadResp<DATA_WIDTH> {
data: unmasked_read_value & read_req.mask,
data: unmasked_read_value & expand_mask<DATA_WIDTH>(read_req.mask),
};
let tok = send_if(tok, read_resp, read_req_valid, read_resp_value);

Expand Down

0 comments on commit 4cbe961

Please sign in to comment.