self.clk = ClockSignal()
self.reset = ResetSignal()
#output [31:2] memory_interface_fetch_address,
- self.memory_interface_fetch_address = Signal(32)[2:]
+ self.memory_interface_fetch_address = Signal(32)
#input [31:0] memory_interface_fetch_data,
self.memory_interface_fetch_data = Signal(32)
self.memory_interface_fetch_valid = Signal()
self.sync += If(self.fetch_action != fetch_action_wait,
self.output_pc.eq(fetch_pc))
- self.memory_interface_fetch_address = fetch_pc[2:]
+ self.comb += self.memory_interface_fetch_address.eq(fetch_pc[2:])
#initial output_pc <= reset_vector;
#initial output_state <= `fetch_output_state_empty;
if __name__ == "__main__":
example = CPUFetchStage()
- memory_interface_fetch_address = Signal(32)
+ #memory_interface_fetch_address = Signal(32)
print(verilog.convert(example,
{ #example.clk,
#example.reset,
- memory_interface_fetch_address,
+ example.memory_interface_fetch_address,
example.memory_interface_fetch_data,
example.memory_interface_fetch_valid,
example.fetch_action,