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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [rtl/] [sys_gen/] [w11a/] [nexys2/] [sys_w11a_n2.vhd] - Diff between revs 15 and 16

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

Rev 15 Rev 16
Line 1... Line 1...
-- $Id: sys_w11a_n2.vhd 433 2011-11-27 22:04:39Z mueller $
-- $Id: sys_w11a_n2.vhd 440 2011-12-18 20:08:09Z mueller $
--
--
-- Copyright 2010-2011 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
-- Copyright 2010-2011 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
Line 17... Line 17...
--
--
-- Dependencies:   vlib/xlib/dcm_sfs
-- Dependencies:   vlib/xlib/dcm_sfs
--                 vlib/genlib/clkdivce
--                 vlib/genlib/clkdivce
--                 bplib/bpgen/bp_rs232_2l4l_iob
--                 bplib/bpgen/bp_rs232_2l4l_iob
--                 bplib/bpgen/sn_humanio_rbus
--                 bplib/bpgen/sn_humanio_rbus
--                 vlib/rlink/rlink_base_serport
--                 vlib/rlink/rlink_sp1c
--                 vlib/rri/rb_sres_or_3
--                 vlib/rri/rb_sres_or_3
--                 w11a/pdp11_core_rbus
--                 w11a/pdp11_core_rbus
--                 w11a/pdp11_core
--                 w11a/pdp11_core
--                 w11a/pdp11_bram
--                 w11a/pdp11_bram
--                 vlib/nxcramlib/nx_cram_dummy
--                 vlib/nxcramlib/nx_cram_dummy
Line 38... Line 38...
-- Target Devices: generic
-- Target Devices: generic
-- Tool versions:  xst 8.2, 9.1, 9.2, 10.1, 11.4, 12.1, 13.1; ghdl 0.26-0.29
-- Tool versions:  xst 8.2, 9.1, 9.2, 10.1, 11.4, 12.1, 13.1; ghdl 0.26-0.29
--
--
-- Synthesized (xst):
-- Synthesized (xst):
-- Date         Rev  ise         Target      flop lutl lutm slic t peri
-- Date         Rev  ise         Target      flop lutl lutm slic t peri
 
-- 2011-12-18   440 13.1    O40d xc3s1200e-4 1450 4439  270 2740 ok: LP+PC+DL+II
-- 2011-11-18   427 13.1    O40d xc3s1200e-4 1433 4374  242 2680 ok: LP+PC+DL+II
-- 2011-11-18   427 13.1    O40d xc3s1200e-4 1433 4374  242 2680 ok: LP+PC+DL+II
-- 2010-12-30   351 12.1    M53d xc3s1200e-4 1389 4368  242 2674 ok: LP+PC+DL+II
-- 2010-12-30   351 12.1    M53d xc3s1200e-4 1389 4368  242 2674 ok: LP+PC+DL+II
-- 2010-11-06   336 12.1    M53d xc3s1200e-4 1357 4304* 242 2618 ok: LP+PC+DL+II
-- 2010-11-06   336 12.1    M53d xc3s1200e-4 1357 4304* 242 2618 ok: LP+PC+DL+II
-- 2010-10-24   335 12.1    M53d xc3s1200e-4 1357 4546  242 2618 ok: LP+PC+DL+II
-- 2010-10-24   335 12.1    M53d xc3s1200e-4 1357 4546  242 2618 ok: LP+PC+DL+II
-- 2010-10-17   333 12.1    M53d xc3s1200e-4 1350 4541  242 2617 ok: LP+PC+DL+II
-- 2010-10-17   333 12.1    M53d xc3s1200e-4 1350 4541  242 2617 ok: LP+PC+DL+II
Line 61... Line 62...
-- 2010-05-26   296 11.4    L68  xc3s1200e-4 1284 4079  224 2492 ok: LP+PC+DL+II
-- 2010-05-26   296 11.4    L68  xc3s1200e-4 1284 4079  224 2492 ok: LP+PC+DL+II
--   Note: till 2010-10-24 lutm included 'route-thru', after only logic
--   Note: till 2010-10-24 lutm included 'route-thru', after only logic
--
--
-- Revision History: 
-- Revision History: 
-- Date         Rev Version  Comment
-- Date         Rev Version  Comment
 
-- 2011-12-18   440   1.2.7  use rlink_sp1c
-- 2011-11-26   433   1.2.6  use nx_cram_(dummy|memctl_as) now
-- 2011-11-26   433   1.2.6  use nx_cram_(dummy|memctl_as) now
-- 2011-11-23   432   1.2.5  update O_FLA_CE_N usage
-- 2011-11-23   432   1.2.5  update O_FLA_CE_N usage
-- 2011-11-19   427   1.2.4  now numeric_std clean
-- 2011-11-19   427   1.2.4  now numeric_std clean
-- 2011-11-17   426   1.2.3  use dcm_sfs now
-- 2011-11-17   426   1.2.3  use dcm_sfs now
-- 2011-07-09   391   1.2.2  use now bp_rs232_2l4l_iob
-- 2011-07-09   391   1.2.2  use now bp_rs232_2l4l_iob
Line 91... Line 93...
-- w11a test design for nexys2
-- w11a test design for nexys2
--    w11a + rlink + serport
--    w11a + rlink + serport
--
--
-- Usage of Nexys 2 Switches, Buttons, LEDs:
-- Usage of Nexys 2 Switches, Buttons, LEDs:
--
--
 
--    SWI(7:2): no function (only connected to sn_humanio_rbus)
 
--    SWI(1):   1 enable XON
--    SWI(0):   0 -> main board RS232 port
--    SWI(0):   0 -> main board RS232 port
--              1 -> Pmod B/top RS232 port
--              1 -> Pmod B/top RS232 port
--    
--    
--    LED(0:4): if cpugo=1 show cpu mode activity
--    LED(7)    MEM_ACT_W
--                  (0) user mode
--       (6)    MEM_ACT_R
--                  (1) supervisor mode
--       (5)    cmdbusy (all rlink access, mostly rdma)
--                  (2) kernel mode, wait
--       (4:0): if cpugo=1 show cpu mode activity
--                  (3) kernel mode, pri=0
 
--                  (4) kernel mode, pri>0
--                  (4) kernel mode, pri>0
 
--                  (3) kernel mode, pri=0
 
--                  (2) kernel mode, wait
 
--                  (1) supervisor mode
 
--                  (0) user mode
--              if cpugo=0 shows cpurust
--              if cpugo=0 shows cpurust
--                (3:0) cpurust code
--                (3:0) cpurust code
--                  (4) '1'
--                  (4) '1'
--         (5)  cmdbusy (all rlink access, mostly rdma)
 
--         (6)  MEM_ACT_R
 
--         (7)  MEM_ACT_W
 
--
--
--    DP(0):    RXSD   (inverted to signal activity)
--    DP(3):    not SER_MONI.txok       (shows tx back preasure)
--    DP(1):    RTS_N  (shows rx back preasure)
--    DP(2):    SER_MONI.txact          (shows tx activity)
--    DP(2):    TXSD   (inverted to signal activity)
--    DP(1):    not SER_MONI.rxok       (shows rx back preasure)
--    DP(3):    CTS_N  (shows tx back preasure)
--    DP(0):    SER_MONI.rxact          (shows rx activity)
 
--
 
 
library ieee;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use ieee.numeric_std.all;
 
 
use work.slvtypes.all;
use work.slvtypes.all;
use work.xlib.all;
use work.xlib.all;
use work.genlib.all;
use work.genlib.all;
 
use work.serport.all;
use work.rblib.all;
use work.rblib.all;
use work.rlinklib.all;
use work.rlinklib.all;
use work.bpgenlib.all;
use work.bpgenlib.all;
use work.nxcramlib.all;
use work.nxcramlib.all;
use work.iblib.all;
use work.iblib.all;
Line 178... Line 184...
  signal DSP_DP  : slv4  := (others=>'0');
  signal DSP_DP  : slv4  := (others=>'0');
 
 
  signal RB_LAM  : slv16 := (others=>'0');
  signal RB_LAM  : slv16 := (others=>'0');
  signal RB_STAT : slv3  := (others=>'0');
  signal RB_STAT : slv3  := (others=>'0');
 
 
 
  signal SER_MONI : serport_moni_type := serport_moni_init;
 
 
  signal RB_MREQ     : rb_mreq_type := rb_mreq_init;
  signal RB_MREQ     : rb_mreq_type := rb_mreq_init;
  signal RB_SRES     : rb_sres_type := rb_sres_init;
  signal RB_SRES     : rb_sres_type := rb_sres_init;
  signal RB_SRES_CPU : rb_sres_type := rb_sres_init;
  signal RB_SRES_CPU : rb_sres_type := rb_sres_init;
  signal RB_SRES_IBD : rb_sres_type := rb_sres_init;
  signal RB_SRES_IBD : rb_sres_type := rb_sres_init;
  signal RB_SRES_HIO : rb_sres_type := rb_sres_init;
  signal RB_SRES_HIO : rb_sres_type := rb_sres_init;
Line 307... Line 315...
      O_LED   => O_LED,
      O_LED   => O_LED,
      O_ANO_N => O_ANO_N,
      O_ANO_N => O_ANO_N,
      O_SEG_N => O_SEG_N
      O_SEG_N => O_SEG_N
    );
    );
 
 
  RLINK : rlink_base_serport
  RLINK : rlink_sp1c
    generic map (
    generic map (
      ATOWIDTH =>  6,                   -- 64 cycles access timeout
      ATOWIDTH =>  6,                   -- 64 cycles access timeout
      ITOWIDTH =>  6,                   -- 64 periods max idle timeout
      ITOWIDTH =>  6,                   -- 64 periods max idle timeout
 
      CPREF        => c_rlink_cpref,
      IFAWIDTH =>  5,                   -- 32 word input fifo
      IFAWIDTH =>  5,                   -- 32 word input fifo
      OFAWIDTH =>  0,                   -- no output fifo
      OFAWIDTH     => 5,                --  32 word output fifo
 
      ENAPIN_RLMON => sbcntl_sbf_rlmon,
 
      ENAPIN_RBMON => sbcntl_sbf_rbmon,
      CDWIDTH  => 13,
      CDWIDTH  => 13,
      CDINIT   => sys_conf_ser2rri_cdinit)
      CDINIT   => sys_conf_ser2rri_cdinit)
    port map (
    port map (
      CLK      => CLK,
      CLK      => CLK,
      CE_USEC  => CE_USEC,
      CE_USEC  => CE_USEC,
      CE_MSEC  => CE_MSEC,
      CE_MSEC  => CE_MSEC,
      CE_INT   => CE_MSEC,
      CE_INT   => CE_MSEC,
      RESET    => RESET,
      RESET    => RESET,
 
      ENAXON   => SWI(1),
 
      ENAESC   => SWI(1),
      RXSD     => RXD,
      RXSD     => RXD,
      TXSD     => TXD,
      TXSD     => TXD,
      CTS_N    => CTS_N,
      CTS_N    => CTS_N,
      RTS_N    => RTS_N,
      RTS_N    => RTS_N,
      RB_MREQ  => RB_MREQ,
      RB_MREQ  => RB_MREQ,
      RB_SRES  => RB_SRES,
      RB_SRES  => RB_SRES,
      RB_LAM   => RB_LAM,
      RB_LAM   => RB_LAM,
      RB_STAT  => RB_STAT,
      RB_STAT  => RB_STAT,
      RL_MONI  => open,
      RL_MONI  => open,
      RL_SER_MONI => open
      SER_MONI => SER_MONI
    );
    );
 
 
  RB_SRES_OR : rb_sres_or_3
  RB_SRES_OR : rb_sres_or_3
    port map (
    port map (
      RB_SRES_1  => RB_SRES_CPU,
      RB_SRES_1  => RB_SRES_CPU,
Line 544... Line 557...
        DISPREG  => DISPREG
        DISPREG  => DISPREG
      );
      );
  end generate IBD_MAXI;
  end generate IBD_MAXI;
 
 
  DSP_DAT(15 downto 0) <= DISPREG;
  DSP_DAT(15 downto 0) <= DISPREG;
  DSP_DP(0) <= not RXD;
 
  DSP_DP(1) <= RTS_N;
  DSP_DP(3) <= not SER_MONI.txok;
  DSP_DP(2) <= not TXD;
  DSP_DP(2) <= SER_MONI.txact;
  DSP_DP(3) <= CTS_N;
  DSP_DP(1) <= not SER_MONI.rxok;
 
  DSP_DP(0) <= SER_MONI.rxact;
 
 
  proc_led: process (MEM_ACT_W, MEM_ACT_R, CP_STAT, DM_STAT_DP.psw)
  proc_led: process (MEM_ACT_W, MEM_ACT_R, CP_STAT, DM_STAT_DP.psw)
    variable iled : slv8 := (others=>'0');
    variable iled : slv8 := (others=>'0');
  begin
  begin
    iled := (others=>'0');
    iled := (others=>'0');

powered by: WebSVN 2.1.0

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