~ruther/verilog-riscv-semestral-project

7ad5176683d16ac95ec356d2fe57bc9c753d698b — Rutherther 1 year, 5 months ago 02405ee
fix: remove duplicit instruction and pc in cpu
1 files changed, 1 insertions(+), 4 deletions(-)

M src/cpu.sv
M src/cpu.sv => src/cpu.sv +1 -4
@@ 9,17 9,14 @@ module cpu(
  output reg [31:0] pc,

  // ram
  input [31:0]      memory_address,
  output [31:0]     memory_address,
  input [31:0]      memory_out,
  output reg [31:0] memory_write,
  output reg        memory_we
);
  parameter WIDTH = 32;

  wire [31:0] instruction;

  reg [31:0]  pc_next;
  wire [31:0] pc;
  wire        pc_src;

  reg [31:0]  alu_1, alu_2;

Do not follow this link