URL
https://opencores.org/ocsvn/sdram_controller/sdram_controller/trunk
Subversion Repositories sdram_controller
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 11 to Rev 12
- ↔ Reverse comparison
Rev 11 → Rev 12
/sdram_controller/trunk/sdram.vhd
232,7 → 232,7
|
-- various wait counter values |
constant AUTO_REFRESH_CLKS : integer := 700; -- spec says 7.8us, which is 780 clocks @ 100Mhz, I'm setting it to 700 |
constant WRITE_RECOVER_CLKS : integer := 6; -- these are fudged a bit, you *might* be able to shave a clock or two off |
constant WRITE_RECOVER_CLKS : integer := 5; -- these are fudged a bit, you *might* be able to shave a clock or two off |
constant READ_DONE_CLKS : integer := 5; |
|
type CMD_STATES is ( STATE_START, STATE_INIT, STATE_WAIT_INIT, STATE_IDLE, STATE_IDLE_AUTO_REFRESH, |
459,7 → 459,7
data_o <= data1_o when addr_save(0) = '1' else data0_o; |
|
-- capture addr, data_i and op for the cmd fsm |
-- op needs capture during AR or it might get dropped |
-- op needs to be captured during AR or it might get dropped |
process (clk_000) |
begin |
if (rising_edge(clk_000)) then |
/sdram_controller/trunk/sdram_init.vhd
61,7 → 61,7
constant CMD_AUTO_REFR : std_logic_vector(2 downto 0) := "100"; |
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, |
STATE_WAIT_MRE, STATE_LOAD_MRN, STATE_WAIT_MRN, STATE_PRECHARGE_ALL1, STATE_WAIT_PRECHARGE_ALL1, STATE_AUTO_REFRESH0, |