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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_50/] [or1ksim/] [peripheral/] [mc.h] - Diff between revs 239 and 261

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 239 Rev 261
/* mc.c -- Simulation of Memory Controller
/* mc.c -- Simulation of Memory Controller
         Copyright (C) 2001 by Marko Mlinar, markom@opencores.org
         Copyright (C) 2001 by Marko Mlinar, markom@opencores.org
 
 
         This file is part of OpenRISC 1000 Architectural Simulator.
         This file is part of OpenRISC 1000 Architectural Simulator.
 
 
         This program is free software; you can redistribute it and/or modify
         This program is free software; you can redistribute it and/or modify
         it under the terms of the GNU General Public License as published by
         it under the terms of the GNU General Public License as published by
         the Free Software Foundation; either version 2 of the License, or
         the Free Software Foundation; either version 2 of the License, or
         (at your option) any later version.
         (at your option) any later version.
 
 
         This program is distributed in the hope that it will be useful,
         This program is distributed in the hope that it will be useful,
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
         GNU General Public License for more details.
         GNU General Public License for more details.
 
 
         You should have received a copy of the GNU General Public License
         You should have received a copy of the GNU General Public License
         along with this program; if not, write to the Free Software
         along with this program; if not, write to the Free Software
         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
*/
 
 
 No newline at end of file
 No newline at end of file
 
/* Prototypes */
 
void mc_reset();
 
inline void mc_clock();
 
 
 
#define N_CE        (8)
 
 
 
#define MC_CSR      (0x00)
 
#define MC_POC      (0x04)
 
#define MC_BA_MASK  (0x08)
 
#define MC_CSC(i)   (0x10 + (i) * 4)
 
#define MC_TMS(i)   (0x14 + (i) * 4)
 
 
 
#define MC_ADDR_SPACE (MC_CSC(N_CE))
 
 
 
 
 
struct mc {
 
  unsigned long csr;
 
  unsigned long poc;
 
  unsigned long ba_mask;
 
  unsigned long csc[N_CE];
 
  unsigned long tms[N_CE];
 
};
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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