Line 1... |
Line 1... |
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
--
|
--
|
-- The Decoder unit.
|
-- The Decoder unit.
|
-- It decodes the instruction opcodes and executes them.
|
-- It decodes the instruction opcodes and executes them.
|
--
|
--
|
-- $Id: decoder.vhd,v 1.14 2004-06-30 21:18:28 arniml Exp $
|
-- $Id: decoder.vhd,v 1.15 2004-09-12 00:35:44 arniml Exp $
|
--
|
--
|
-- Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
|
-- Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
|
--
|
--
|
-- All rights reserved
|
-- All rights reserved
|
--
|
--
|
Line 359... |
Line 359... |
pm_write_pmem_addr_s <= true;
|
pm_write_pmem_addr_s <= true;
|
end if;
|
end if;
|
|
|
when MSTATE4 =>
|
when MSTATE4 =>
|
if ea_i = '1' and
|
if ea_i = '1' and
|
(need_address_v or last_cycle_s) then
|
((not clk_second_cycle_i and assert_psen_s)
|
|
or last_cycle_s) then
|
clk_assert_psen_o <= true;
|
clk_assert_psen_o <= true;
|
p2_output_pch_o <= true;
|
p2_output_pch_o <= true;
|
bus_output_pcl_o <= true;
|
bus_output_pcl_o <= true;
|
end if;
|
end if;
|
|
|
Line 1944... |
Line 1945... |
|
|
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
-- File History:
|
-- File History:
|
--
|
--
|
-- $Log: not supported by cvs2svn $
|
-- $Log: not supported by cvs2svn $
|
|
-- Revision 1.14 2004/06/30 21:18:28 arniml
|
|
-- Fix bug report:
|
|
-- "Program Memory bank can be switched during interrupt"
|
|
-- int module emits int_in_progress signal that is used inside the decoder
|
|
-- to hold mb low for JMP and CALL during interrupts
|
|
--
|
-- Revision 1.13 2004/05/20 21:51:40 arniml
|
-- Revision 1.13 2004/05/20 21:51:40 arniml
|
-- clean-up use of ea_i
|
-- clean-up use of ea_i
|
--
|
--
|
-- Revision 1.12 2004/05/17 14:40:09 arniml
|
-- Revision 1.12 2004/05/17 14:40:09 arniml
|
-- assert p2_read_p2_o when expander port is read
|
-- assert p2_read_p2_o when expander port is read
|