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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [mc_sync.h] - Blame information for rev 454

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 454 ivang
/* mc_sync.h - Memory Controller testbench SYNCdevices defines
2
         Copyright (C) 2001 by Ivan Guzvinec, ivang@opencores.org
3
 
4
         This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
         This program is free software; you can redistribute it and/or modify
7
         it under the terms of the GNU General Public License as published by
8
         the Free Software Foundation; either version 2 of the License, or
9
         (at your option) any later version.
10
 
11
         This program is distributed in the hope that it will be useful,
12
         but WITHOUT ANY WARRANTY; without even the implied warranty of
13
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
14
         GNU General Public License for more details.
15
 
16
         You should have received a copy of the GNU General Public License
17
         along with this program; if not, write to the Free Software
18
         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
*/
20
 
21
#ifndef __MC_SYNC_H
22
#define __MC_SYNC_H
23
 
24
/* memory configuration that must reflect mcmem.cfg */
25
#define MC_SYNC_CSMASK  0xFE    /* 8 bit mask for 8 chip selects. 1 ASYNC at CS, 0 something else at CS */
26
 
27
typedef struct MC_SYNC_CS
28
{
29
  unsigned char M;
30
} MC_SYNC_CS;
31
 
32
MC_SYNC_CS mc_async_cs[8] = {
33
  { 0x02  /* SELect mask */
34
    },
35
  { 0x04 },
36
  { 0x06 },
37
  { 0x08 },
38
  { 0x0A },
39
  { 0x0C },
40
  { 0x0E },
41
  { 0x10 } };
42
 
43
#define MC_SYNC_FLAGS   0x000002FFLU    /* MC_TEST_ flags... see mc_common.h */
44
 
45
#define MC_SYNC_TEST0   0x00000001LU
46
#define MC_SYNC_TEST1   0x00000002LU
47
#define MC_SYNC_TEST2   0x00000004LU
48
#define MC_SYNC_TEST3   0x00000008LU
49
#define MC_SYNC_TEST4   0x00000010LU
50
 
51
#define MC_SYNC_TESTS   0x0000001FLU
52
#endif

powered by: WebSVN 2.1.0

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