- 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
This commit is contained in:
2009-02-16 22:48:17 +00:00
parent 08466372b2
commit 8018a94936
+2 -1
View File
@@ -303,12 +303,13 @@ proc_stage_pc_next:
process(clk_1) process(clk_1)
begin begin
if rising_edge(clk_1) then if rising_edge(clk_1) then
branch_ce <= '0';
cop_ctrl.exc_left <= '0'; cop_ctrl.exc_left <= '0';
if rst = '1' then if rst = '1' then
pc.nxt <= pc.curr; pc.nxt <= pc.curr;
pc.last <= pc.curr; pc.last <= pc.curr;
branch_ce <= '1';
else else
branch_ce <= '0';
if cop_stat.exc_commit = '1' then if cop_stat.exc_commit = '1' then
pc.nxt <= cop_stat.exc_vec; pc.nxt <= cop_stat.exc_vec;
elsif sdu.ID_stall = '0' then elsif sdu.ID_stall = '0' then