-- $Id: pdp11_tmu_sb.vhd 314 2010-07-09 17:38:41Z mueller $
|
-- $Id: pdp11_tmu_sb.vhd 314 2010-07-09 17:38:41Z mueller $
|
--
|
--
|
-- Copyright 2009- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
-- Copyright 2009- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
--
|
--
|
-- This program is free software; you may redistribute and/or modify it under
|
-- This program is free software; you may redistribute and/or modify it under
|
-- the terms of the GNU General Public License as published by the Free
|
-- the terms of the GNU General Public License as published by the Free
|
-- Software Foundation, either version 2, or at your option any later version.
|
-- Software Foundation, either version 2, or at your option any later version.
|
--
|
--
|
-- This program is distributed in the hope that it will be useful, but
|
-- This program is distributed in the hope that it will be useful, but
|
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
-- for complete details.
|
-- for complete details.
|
--
|
--
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
-- Module Name: pdp11_tmu - sim
|
-- Module Name: pdp11_tmu - sim
|
-- Description: pdp11: trace and monitor unit; simbus wrapper
|
-- Description: pdp11: trace and monitor unit; simbus wrapper
|
--
|
--
|
-- Dependencies: simbus
|
-- Dependencies: simbus
|
-- Test bench: -
|
-- Test bench: -
|
-- Tool versions: xst 8.1, 8.2, 9.1, 9.2; ghdl 0.18-0.25
|
-- Tool versions: xst 8.1, 8.2, 9.1, 9.2; ghdl 0.18-0.25
|
-- Revision History:
|
-- Revision History:
|
-- Date Rev Version Comment
|
-- Date Rev Version Comment
|
-- 2009-05-10 214 1.0 Initial version
|
-- 2009-05-10 214 1.0 Initial version
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
|
|
library ieee;
|
library ieee;
|
use ieee.std_logic_1164.all;
|
use ieee.std_logic_1164.all;
|
|
|
use work.slvtypes.all;
|
use work.slvtypes.all;
|
use work.simlib.all;
|
use work.simlib.all;
|
use work.simbus.all;
|
use work.simbus.all;
|
use work.pdp11.all;
|
use work.pdp11.all;
|
|
|
entity pdp11_tmu_sb is -- trace and mon. unit; simbus wrapper
|
entity pdp11_tmu_sb is -- trace and mon. unit; simbus wrapper
|
generic (
|
generic (
|
ENAPIN : integer := 13); -- SB_CNTL signal to use for enable
|
ENAPIN : integer := 13); -- SB_CNTL signal to use for enable
|
port (
|
port (
|
CLK : in slbit; -- clock
|
CLK : in slbit; -- clock
|
DM_STAT_DP : in dm_stat_dp_type; -- DM dpath
|
DM_STAT_DP : in dm_stat_dp_type; -- DM dpath
|
DM_STAT_VM : in dm_stat_vm_type; -- DM vmbox
|
DM_STAT_VM : in dm_stat_vm_type; -- DM vmbox
|
DM_STAT_CO : in dm_stat_co_type; -- DM core
|
DM_STAT_CO : in dm_stat_co_type; -- DM core
|
DM_STAT_SY : in dm_stat_sy_type -- DM system
|
DM_STAT_SY : in dm_stat_sy_type -- DM system
|
);
|
);
|
end pdp11_tmu_sb;
|
end pdp11_tmu_sb;
|
|
|
|
|
architecture sim of pdp11_tmu_sb is
|
architecture sim of pdp11_tmu_sb is
|
|
|
signal ENA : slbit := '0';
|
signal ENA : slbit := '0';
|
|
|
begin
|
begin
|
|
|
assert ENAPIN>=SB_CNTL'low and ENAPIN<=SB_CNTL'high
|
assert ENAPIN>=SB_CNTL'low and ENAPIN<=SB_CNTL'high
|
report "assert(ENAPIN in SB_CNTL'range)" severity failure;
|
report "assert(ENAPIN in SB_CNTL'range)" severity failure;
|
|
|
ENA <= to_x01(SB_CNTL(ENAPIN));
|
ENA <= to_x01(SB_CNTL(ENAPIN));
|
|
|
CPMON : pdp11_tmu
|
CPMON : pdp11_tmu
|
port map (
|
port map (
|
CLK => CLK,
|
CLK => CLK,
|
ENA => ENA,
|
ENA => ENA,
|
DM_STAT_DP => DM_STAT_DP,
|
DM_STAT_DP => DM_STAT_DP,
|
DM_STAT_VM => DM_STAT_VM,
|
DM_STAT_VM => DM_STAT_VM,
|
DM_STAT_CO => DM_STAT_CO,
|
DM_STAT_CO => DM_STAT_CO,
|
DM_STAT_SY => DM_STAT_SY
|
DM_STAT_SY => DM_STAT_SY
|
);
|
);
|
|
|
end sim;
|
end sim;
|
|
|