mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 21:39:13 -04:00
Fix syntax and add option to default config
This commit is contained in:
parent
b38841f8db
commit
05c4646c13
2 changed files with 7 additions and 2 deletions
|
@ -169,7 +169,6 @@ module riscv_id_stage
|
|||
output logic alu_req_ex_o,
|
||||
`endif
|
||||
|
||||
|
||||
// CSR ID/EX
|
||||
output logic csr_access_ex_o,
|
||||
output logic [1:0] csr_op_ex_o,
|
||||
|
@ -1472,7 +1471,7 @@ always_ff @(posedge clk, negedge rst_n)
|
|||
data_misaligned_ex_o <= 1'b1;
|
||||
// CONFIG_REGION: SPLITTED_ADDER
|
||||
`ifdef SPLITTED_ADDER
|
||||
alu_req_ex_o <= 1'b0;
|
||||
alu_req_ex_o <= 1'b1;
|
||||
`endif
|
||||
end
|
||||
end
|
||||
|
@ -1614,9 +1613,11 @@ always_ff @(posedge clk, negedge rst_n)
|
|||
`endif // ONLY_ALIGNED
|
||||
branch_in_ex_o <= 1'b0;
|
||||
end
|
||||
`ifdef SPLITTED_ADDER
|
||||
else begin
|
||||
alu_req_ex_o <= 1'b0; // We cannot deliver new data to ALU (running or not running)
|
||||
end
|
||||
`endif
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -109,6 +109,10 @@
|
|||
// will only allow aligned memory accesses and therefore overlapping mustn't occur
|
||||
//`define ONLY_ALIGNED
|
||||
|
||||
// CONFIG: SPLITTED_ADDER
|
||||
// will split ALU Adder in half and use two cycles to add operands
|
||||
`define SPLITTED_ADDER
|
||||
|
||||
`endif
|
||||
`endif
|
||||
`endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue