URL
https://opencores.org/ocsvn/qspiflash/qspiflash/trunk
[/] [qspiflash/] [trunk/] [bench/] [cpp/] [qspiflashsim.cpp] - Diff between revs 15 and 16
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 15 |
Rev 16 |
Line 236... |
Line 236... |
assert((m_addr & (~(m_memmask)))==0);
|
assert((m_addr & (~(m_memmask)))==0);
|
m_state = QSPIF_QUAD_READ;
|
m_state = QSPIF_QUAD_READ;
|
} m_oreg = 0;
|
} m_oreg = 0;
|
} else if (m_count == 8) {
|
} else if (m_count == 8) {
|
QOREG(0x0a5);
|
QOREG(0x0a5);
|
// printf("SFLASH-CMD = %02x\n", m_ireg & 0x0ff);
|
|
// Figure out what command we've been given
|
// Figure out what command we've been given
|
if (m_debug) printf("SPI FLASH CMD %02x\n", m_ireg&0x0ff);
|
if (m_debug) printf("SPI FLASH CMD %02x\n", m_ireg&0x0ff);
|
switch(m_ireg & 0x0ff) {
|
switch(m_ireg & 0x0ff) {
|
case 0x01: // Write status register
|
case 0x01: // Write status register
|
if (2 !=(m_sreg & 0x203)) {
|
if (2 !=(m_sreg & 0x203)) {
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.