URL
https://opencores.org/ocsvn/wbddr3/wbddr3/trunk
[/] [wbddr3/] [trunk/] [bench/] [cpp/] [ddrsdramsim.h] - Diff between revs 12 and 13
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 12 |
Rev 13 |
Line 46... |
Line 46... |
#define DDR_READ 5
|
#define DDR_READ 5
|
#define DDR_ZQS 6
|
#define DDR_ZQS 6
|
#define DDR_NOOP 7
|
#define DDR_NOOP 7
|
|
|
#define NBANKS 8
|
#define NBANKS 8
|
#define NTIMESLOTS 16
|
#define NTIMESLOTS 32
|
|
|
class BANKINFO {
|
class BANKINFO {
|
public:
|
public:
|
int m_state;
|
int m_state;
|
unsigned m_row, m_wcounter;
|
unsigned m_row, m_wcounter;
|
void tick(int cmd, unsigned addr=0);
|
void tick(int cmd, unsigned addr=0);
|
};
|
};
|
|
|
class BUSTIMESLOT {
|
class BUSTIMESLOT {
|
public:
|
public:
|
int m_used, m_read, m_data;
|
int m_used, m_read, m_data, m_rtt;
|
unsigned m_addr;
|
unsigned m_addr;
|
};
|
};
|
|
|
class DDRSDRAMSIM {
|
class DDRSDRAMSIM {
|
int m_reset_state, m_reset_counts, m_memlen, m_busloc,
|
int m_reset_state, m_reset_counts, m_memlen, m_busloc,
|
m_clocks_since_refresh, m_nrefresh_issued;
|
m_clocks_since_refresh, m_nrefresh_issued,
|
|
m_last_dqs, m_last_rtt;
|
unsigned *m_mem;
|
unsigned *m_mem;
|
BANKINFO m_bank[8];
|
BANKINFO m_bank[8];
|
BUSTIMESLOT *m_bus;
|
BUSTIMESLOT *m_bus;
|
int cmd(int,int,int,int);
|
int cmd(int,int,int,int);
|
public:
|
public:
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.