Skip to content

Commit

Permalink
Update riscvsingle.vhdl
Browse files Browse the repository at this point in the history
  • Loading branch information
michael9186 committed Jun 2, 2023
1 parent d4807ce commit be42f75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/template_2/riscvsingle.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ architecture struct of controller is
ResultSrc: out STD_ULOGIC_VECTOR(1 downto 0);
ALUSrc: out STD_ULOGIC_VECTOR(1 downto 0);
MemWrite: out STD_ULOGIC;
Branch: out STD_ULOGIC;
Branch: out STD_ULOGIC;
RegWrite, Jump: out STD_ULOGIC;
ImmSrc: out STD_ULOGIC_VECTOR(2 downto 0); -- 1 down to 0 before
ALUOp: out STD_ULOGIC_VECTOR(1 downto 0);
Expand Down Expand Up @@ -239,13 +239,13 @@ begin
when "1100011" => case funct3 is -- B-type
when "000" => controls <= "001000000101000"; -- beq
when "100" => controls <= "0010000--110010"; -- blt
when others => controls <= "-----------"; -- not valid
when others => controls <= "---------------"; -- not valid
end case;
when "0010011" => controls <= "1000010000100-0"; -- I-type ALU
when "1101111" => controls <= "1011000100001-0"; -- jal
when "1100111" => controls <= "1000010100001-0"; -- jalr
when "0010111" => controls <= "1100100000000-1"; -- U-Type (auipc)
when others => controls <= "-----------"; -- not valid
when others => controls <= "---------------"; -- not valid
end case;
end process;

Expand Down

0 comments on commit be42f75

Please sign in to comment.