From a3a1eb1b19db9964f8a3eab3221c37f80d8df551 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 22 Nov 2018 22:35:59 +0000 Subject: [PATCH] more cleanup --- cpu_fetch_stage.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cpu_fetch_stage.py b/cpu_fetch_stage.py index 3d25d35..242e2ef 100644 --- a/cpu_fetch_stage.py +++ b/cpu_fetch_stage.py @@ -56,18 +56,15 @@ class CPUFetchStage(Module): fetch_pc = Signal(32, reset=reset_vector) self.sync += If(fetch_action != fetch_action_wait, - output_pc.eq(fetch_pc)). - Else( output_pc.eq(output_pc)) # hmmm... - #self.sync += output_pc.eq((fetch_action == `fetch_action_wait) ? - # output_pc : fetch_pc); + output_pc.eq(fetch_pc)) memory_interface_fetch_address = fetch_pc[2:] initial output_pc <= reset_vector; initial output_state <= `fetch_output_state_empty; - delayed_instruction = Signal(32, reset=0); - delayed_instruction_valid = Signal(reset=0); + delayed_instruction = Signal(32, reset=0) + delayed_instruction_valid = Signal(reset=0) self.sync += delayed_instruction.eq(output_instruction) self.sync += output_state.eq(fetch_output_state_empty) -- 2.30.2