summaryrefslogtreecommitdiff
path: root/rtl/core/control
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-18 00:22:13 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-18 00:22:23 -0600
commit6d458ad9629268ecfc69881b4fb10dca0498fbd0 (patch)
treeea149276a31f518788c758899ab5ced8a8a8b74c /rtl/core/control
parentca8b6e6696e279f56faacad39501019c3762a1b7 (diff)
Fix datapath of shifter carry-out during adc/sbc/rsc
Diffstat (limited to 'rtl/core/control')
-rw-r--r--rtl/core/control/control.sv2
-rw-r--r--rtl/core/control/data.sv8
2 files changed, 5 insertions, 5 deletions
diff --git a/rtl/core/control/control.sv b/rtl/core/control/control.sv
index cbc7191..a421572 100644
--- a/rtl/core/control/control.sv
+++ b/rtl/core/control/control.sv
@@ -42,7 +42,7 @@ module core_control
writeback,
breakpoint,
update_flags,
- c_in,
+ c_logic,
output reg_num rd,
ra,
rb,
diff --git a/rtl/core/control/data.sv b/rtl/core/control/data.sv
index 5d34b13..3174ee1 100644
--- a/rtl/core/control/data.sv
+++ b/rtl/core/control/data.sv
@@ -31,7 +31,7 @@ module core_control_data
output shifter_control shifter,
output word shifter_base,
output logic[7:0] shifter_shift,
- output logic c_in,
+ output logic c_logic,
trivial_shift,
data_snd_shift_by_reg
);
@@ -75,7 +75,7 @@ module core_control_data
always_ff @(posedge clk or negedge rst_n)
if(!rst_n) begin
alu <= {$bits(alu){1'b0}};
- c_in <= 0;
+ c_logic <= 0;
shifter <= {$bits(shifter){1'b0}};
data_imm <= {$bits(data_imm){1'b0}};
saved_base <= 0;
@@ -84,7 +84,7 @@ module core_control_data
data_snd_shift_by_reg <= 0;
end else if(next_cycle.issue) begin
alu <= dec.data.op;
- c_in <= flags.c;
+ c_logic <= 0;
data_imm <= dec.snd.imm;
data_shift_imm <= dec.snd.shift_imm;
@@ -99,7 +99,7 @@ module core_control_data
saved_base <= rd_value_b;
data_snd_shift_by_reg <= 0;
end else if(next_cycle.with_shift) begin
- c_in <= c_shifter;
+ c_logic <= c_shifter;
saved_base <= q_shifter;
end else if(next_cycle.transfer) begin
if(ldst_next)