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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [cpp/] [busmaster_tb.cpp] - Diff between revs 113 and 115

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

Rev 113 Rev 115
Line 1... Line 1...
 
#define XULA25
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
// Filename:    busmaster_tb.cpp
// Filename:    busmaster_tb.cpp
//
//
// Project:     FPGA library development (XuLA2 development board)
// Project:     FPGA library development (XuLA2 development board)
Line 110... Line 111...
                // Set up the bus before any clock tick
                // Set up the bus before any clock tick
                m_core->i_clk = 1;
                m_core->i_clk = 1;
                flash_miso = (m_flash(m_core->o_sf_cs_n,
                flash_miso = (m_flash(m_core->o_sf_cs_n,
                                        m_core->o_spi_sck,
                                        m_core->o_spi_sck,
                                        m_core->o_spi_mosi)&0x02)?1:0;
                                        m_core->o_spi_mosi)&0x02)?1:0;
 
#ifdef  XULA25
                sdcard_miso = m_sdcard(m_core->o_sd_cs_n, m_core->o_spi_sck,
                sdcard_miso = m_sdcard(m_core->o_sd_cs_n, m_core->o_spi_sck,
                                        m_core->o_spi_mosi);
                                        m_core->o_spi_mosi);
 
#endif
 
 
                if ((m_core->o_sf_cs_n)&&(m_core->o_sd_cs_n))
                if ((m_core->o_sf_cs_n)&&(m_core->o_sd_cs_n))
                        m_core->i_spi_miso = 1;
                        m_core->i_spi_miso = 1;
                else if ((!m_core->o_sf_cs_n)&&(m_core->o_sd_cs_n))
                else if ((!m_core->o_sf_cs_n)&&(m_core->o_sd_cs_n))
                        m_core->i_spi_miso = flash_miso;
                        m_core->i_spi_miso = flash_miso;
Line 134... Line 137...
                m_core->i_rx_uart = m_uart(m_core->o_tx_uart,
                m_core->i_rx_uart = m_uart(m_core->o_tx_uart,
                                m_core->v__DOT__serialport__DOT__r_setup);
                                m_core->v__DOT__serialport__DOT__r_setup);
                PIPECMDR::tick();
                PIPECMDR::tick();
 
 
// #define      DEBUGGING_OUTPUT
// #define      DEBUGGING_OUTPUT
#define XULA25
 
#ifdef  DEBUGGING_OUTPUT
#ifdef  DEBUGGING_OUTPUT
                bool    writeout = false;
                bool    writeout = false;
                /*
                /*
                if (m_core->v__DOT__sdram__DOT__r_pending)
                if (m_core->v__DOT__sdram__DOT__r_pending)
                        writeout = true;
                        writeout = true;

powered by: WebSVN 2.1.0

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