OpenCores
URL https://opencores.org/ocsvn/cpu_lecture/cpu_lecture/trunk

Subversion Repositories cpu_lecture

[/] [cpu_lecture/] [trunk/] [src/] [opc_deco.vhd] - Diff between revs 23 and 24

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 23 Rev 24
Line 99... Line 99...
                        if (I_OPC(5)) = '1' then   -- interrupt
                        if (I_OPC(5)) = '1' then   -- interrupt
                            Q_ALU_OP <= ALU_INTR;
                            Q_ALU_OP <= ALU_INTR;
                            Q_AMOD <= AMOD_SPdd;
                            Q_AMOD <= AMOD_SPdd;
                            Q_JADR <= "0000000000" & I_OPC(4 downto 0) & "0";
                            Q_JADR <= "0000000000" & I_OPC(4 downto 0) & "0";
                            Q_PC_OP <= PC_LD_I;
                            Q_PC_OP <= PC_LD_I;
                            Q_WE_F <= '1';
                            Q_WE_F <= '1';      -- clear I-flag
                            Q_WE_M <= "11";
                            Q_WE_M <= "11";     -- write return address
 
                            Q_WE_XYZS <= '1';   -- write new SP
                        end if;
                        end if;
 
 
                    when "01" =>
                    when "01" =>
                        --
                        --
                        -- 0000 0001 dddd rrrr - MOVW
                        -- 0000 0001 dddd rrrr - MOVW

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.