Skip to content

Commit

Permalink
jaja
Browse files Browse the repository at this point in the history
  • Loading branch information
michael9186 committed Jun 2, 2023
1 parent 203ffd7 commit 3df2905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/template_2/riscvsingle.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ entity datapath is -- RISC-V datapath
PC: out STD_ULOGIC_VECTOR(31 downto 0);
Instr: in STD_ULOGIC_VECTOR(31 downto 0);
ALUResult, WriteData: out STD_ULOGIC_VECTOR(31 downto 0);
ReadData: in STD_ULOGIC_VECTOR(31 downto 0)
ReadData: in STD_ULOGIC_VECTOR(31 downto 0);
Jump: in STD_ULOGIC);
end;

Expand Down Expand Up @@ -369,7 +369,7 @@ begin
pcreg: flopr generic map(32) port map(clk, reset, PCNext, PC_s);
pcadd4: adder port map(PC_s, X"00000004", PCPlus4);
pcaddbranch: adder port map(PC_s, ImmExt, PCTarget);
pcmux: mux3 generic map(32) port map(PCPlus4, PCTarget, ALUResult_s, Jump & PCSrc, PCNext);
pcmux: mux3 generic map(32) port map(PCPlus4, PCTarget, ALUResult_s, (Jump & PCSrc), PCNext);

PC <= PC_s;

Expand Down

0 comments on commit 3df2905

Please sign in to comment.