Order outputs consistently in the decode stage
This commit is contained in:
parent
02f1d705b7
commit
70d72331a7
1 changed files with 5 additions and 5 deletions
|
|
@ -83,23 +83,23 @@ module rv32_decode (
|
||||||
|
|
||||||
always_ff @(posedge clk) begin
|
always_ff @(posedge clk) begin
|
||||||
if (!stall) begin
|
if (!stall) begin
|
||||||
|
valid_out <= 0;
|
||||||
rs1_out <= rs1;
|
rs1_out <= rs1;
|
||||||
rs2_out <= rs2;
|
rs2_out <= rs2;
|
||||||
rd_out <= rd;
|
|
||||||
pc_out <= pc_in;
|
|
||||||
|
|
||||||
valid_out <= 0;
|
|
||||||
alu_op_out <= 4'bx;
|
alu_op_out <= 4'bx;
|
||||||
alu_sub_sra_out <= 1'bx;
|
alu_sub_sra_out <= 1'bx;
|
||||||
alu_src1_out <= 1'bx;
|
alu_src1_out <= 1'bx;
|
||||||
alu_src2_out <= 1'bx;
|
alu_src2_out <= 1'bx;
|
||||||
rd_writeback_out <= 0;
|
|
||||||
mem_read_en_out <= 0;
|
mem_read_en_out <= 0;
|
||||||
mem_write_en_out <= 0;
|
mem_write_en_out <= 0;
|
||||||
mem_width_out <= 2'bx;
|
mem_width_out <= 2'bx;
|
||||||
mem_zero_extend_out <= 1'bx;
|
mem_zero_extend_out <= 1'bx;
|
||||||
branch_op_out <= RV32_BRANCH_OP_NEVER;
|
branch_op_out <= RV32_BRANCH_OP_NEVER;
|
||||||
branch_pc_src_out <= 1'bx;
|
branch_pc_src_out <= 1'bx;
|
||||||
|
rd_out <= rd;
|
||||||
|
rd_writeback_out <= 0;
|
||||||
|
|
||||||
|
pc_out <= pc_in;
|
||||||
imm_out <= 32'bx;
|
imm_out <= 32'bx;
|
||||||
|
|
||||||
casez ({opcode, funct3, funct7})
|
casez ({opcode, funct3, funct7})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue