URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [or1ksim/] [testbench/] [mc_sync.h] - Rev 454
Go to most recent revision | Compare with Previous | Blame | View Log
/* mc_sync.h - Memory Controller testbench SYNCdevices defines Copyright (C) 2001 by Ivan Guzvinec, ivang@opencores.org This file is part of OpenRISC 1000 Architectural Simulator. 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __MC_SYNC_H #define __MC_SYNC_H /* memory configuration that must reflect mcmem.cfg */ #define MC_SYNC_CSMASK 0xFE /* 8 bit mask for 8 chip selects. 1 ASYNC at CS, 0 something else at CS */ typedef struct MC_SYNC_CS { unsigned char M; } MC_SYNC_CS; MC_SYNC_CS mc_async_cs[8] = { { 0x02 /* SELect mask */ }, { 0x04 }, { 0x06 }, { 0x08 }, { 0x0A }, { 0x0C }, { 0x0E }, { 0x10 } }; #define MC_SYNC_FLAGS 0x000002FFLU /* MC_TEST_ flags... see mc_common.h */ #define MC_SYNC_TEST0 0x00000001LU #define MC_SYNC_TEST1 0x00000002LU #define MC_SYNC_TEST2 0x00000004LU #define MC_SYNC_TEST3 0x00000008LU #define MC_SYNC_TEST4 0x00000010LU #define MC_SYNC_TESTS 0x0000001FLU #endif
Go to most recent revision | Compare with Previous | Blame | View Log