mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 05:07:21 -04:00
Fix mismatch in AMO logic of serpent cache missunit.
This commit is contained in:
parent
0408e9fc38
commit
5a9835d40e
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ module serpent_dcache_missunit #(
|
|||
///////////////////////////////////////////////////////
|
||||
|
||||
// if size = 32bit word, select appropriate offset, replicate for openpiton...
|
||||
assign amo_data = (amo_req_i.size==2'b10) ? {amo_req_i.operand_b[amo_req_i.operand_a[2]*32 +: 32],
|
||||
amo_req_i.operand_b[amo_req_i.operand_a[2]*32 +: 32]} :
|
||||
assign amo_data = (amo_req_i.size==2'b10) ? {amo_req_i.operand_b[0 +: 32],
|
||||
amo_req_i.operand_b[0 +: 32]} :
|
||||
amo_req_i.operand_b;
|
||||
|
||||
// always sign extend 32bit values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue