Line 59... |
Line 59... |
constant CMD_NOP : std_logic_vector(2 downto 0) := "111";
|
constant CMD_NOP : std_logic_vector(2 downto 0) := "111";
|
constant CMD_PRECHARGE : std_logic_vector(2 downto 0) := "010";
|
constant CMD_PRECHARGE : std_logic_vector(2 downto 0) := "010";
|
constant CMD_AUTO_REFR : std_logic_vector(2 downto 0) := "100";
|
constant CMD_AUTO_REFR : std_logic_vector(2 downto 0) := "100";
|
constant CMD_LOAD_MR : std_logic_vector(2 downto 0) := "000";
|
constant CMD_LOAD_MR : std_logic_vector(2 downto 0) := "000";
|
|
|
constant CLKS_200US : integer := 21000; -- well, it's supposed to be 20000, but i'm fudging with 21000
|
constant CLKS_200US : integer := 30000; -- well, it's supposed to be 20000, but i'm fudging
|
|
|
type INIT_STATES is ( STATE_START, STATE_WAIT200US, STATE_CLKE, STATE_PRECHARGE_ALL0, STATE_WAIT_PRECHARGE_ALL0, STATE_LOAD_MRE,
|
type INIT_STATES is ( STATE_START, STATE_WAIT200US, STATE_CLKE, STATE_PRECHARGE_ALL0, STATE_WAIT_PRECHARGE_ALL0, STATE_LOAD_MRE,
|
STATE_WAIT_MRE, STATE_LOAD_MRN, STATE_WAIT_MRN, STATE_PRECHARGE_ALL1, STATE_WAIT_PRECHARGE_ALL1, STATE_AUTO_REFRESH0,
|
STATE_WAIT_MRE, STATE_LOAD_MRN, STATE_WAIT_MRN, STATE_PRECHARGE_ALL1, STATE_WAIT_PRECHARGE_ALL1, STATE_AUTO_REFRESH0,
|
STATE_WAIT_AR_CTR0, STATE_WAIT_AUTO_REFRESH0, STATE_AUTO_REFRESH1, STATE_WAIT_AR_CTR1, STATE_WAIT_AUTO_REFRESH1,
|
STATE_WAIT_AR_CTR0, STATE_WAIT_AUTO_REFRESH0, STATE_AUTO_REFRESH1, STATE_WAIT_AR_CTR1, STATE_WAIT_AUTO_REFRESH1,
|
STATE_WAIT_200_CLOCKS, STATE_DONE );
|
STATE_WAIT_200_CLOCKS, STATE_DONE );
|