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

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [bench/] [cpp/] [qspiflashsim.h] - Diff between revs 2 and 10

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 10
Line 37... Line 37...
//
//
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
#ifndef QSPIFLASHSIM_H
#ifndef QSPIFLASHSIM_H
#define QSPIFLASHSIM_H
#define QSPIFLASHSIM_H
 
 
 
#include <stdint.h>
 
 
#define QSPIF_WIP_FLAG                  0x0001
#define QSPIF_WIP_FLAG                  0x0001
#define QSPIF_WEL_FLAG                  0x0002
#define QSPIF_WEL_FLAG                  0x0002
#define QSPIF_DEEP_POWER_DOWN_FLAG      0x0200
#define QSPIF_DEEP_POWER_DOWN_FLAG      0x0200
class   QSPIFLASHSIM {
class   QSPIFLASHSIM {
        typedef enum {
        typedef enum {
Line 72... Line 74...
 
 
public:
public:
        QSPIFLASHSIM(void);
        QSPIFLASHSIM(void);
        void    load(const char *fname) { load(0, fname); }
        void    load(const char *fname) { load(0, fname); }
        void    load(const unsigned addr, const char *fname);
        void    load(const unsigned addr, const char *fname);
 
        void    write(const unsigned addr, const unsigned len, const uint32_t *buf);
        void    debug(const bool dbg) { m_debug = dbg; }
        void    debug(const bool dbg) { m_debug = dbg; }
        bool    debug(void) const { return m_debug; }
        bool    debug(void) const { return m_debug; }
        int     operator()(const int csn, const int sck, const int dat);
        int     operator()(const int csn, const int sck, const int dat);
};
};
 
 

powered by: WebSVN 2.1.0

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