Skip to content

Commit

Permalink
[hardware] Modify csr sync and handshake in ara
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Sep 16, 2024
1 parent 4293233 commit bba668c
Show file tree
Hide file tree
Showing 5 changed files with 251 additions and 310 deletions.
2 changes: 2 additions & 0 deletions hardware/src/ara.sv
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ module ara import ara_pkg::*; #(
fpnew_pkg::roundmode_e frm;
// result information
writeregflags_t is_writeback;
// does the insn modify a spec CSR?
logic is_spec_csr;
} instr_pack_t;

typedef struct packed {
Expand Down
8 changes: 5 additions & 3 deletions hardware/src/ara_dispatcher.sv
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,11 @@ module ara_dispatcher import ara_pkg::*; import rvv_pkg::*; #(
instruction_ready_o = 1'b0;
core_v_xif_resp_o.result_valid = 1'b0;

x_result = '{
id : instruction_i.id,
default : '0
x_result = '{
id : instruction_i.id,
rd : instruction_i.instr[11:7],
we : instruction_i.is_writeback,
default : '0
};

acc_resp = '{
Expand Down
Loading

0 comments on commit bba668c

Please sign in to comment.