From 8018a94936161509a6bf62e6bf3162af6e3a8e17 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 16 Feb 2009 22:48:17 +0000 Subject: [PATCH] - bug-fix: pc_is_branch is now initialized at reset (fixes CPU unrecoverable state after reset) Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@359 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/CPUs/MIPS/src/core/mips_pipeline.vhd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CPUs/MIPS/src/core/mips_pipeline.vhd b/lib/CPUs/MIPS/src/core/mips_pipeline.vhd index 0264e29..079c1b3 100644 --- a/lib/CPUs/MIPS/src/core/mips_pipeline.vhd +++ b/lib/CPUs/MIPS/src/core/mips_pipeline.vhd @@ -303,12 +303,13 @@ proc_stage_pc_next: process(clk_1) begin if rising_edge(clk_1) then - branch_ce <= '0'; cop_ctrl.exc_left <= '0'; if rst = '1' then pc.nxt <= pc.curr; pc.last <= pc.curr; + branch_ce <= '1'; else + branch_ce <= '0'; if cop_stat.exc_commit = '1' then pc.nxt <= cop_stat.exc_vec; elsif sdu.ID_stall = '0' then