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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [cpp/] [busmaster_tb.cpp] - Diff between revs 37 and 47

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

Rev 37 Rev 47
Line 57... Line 57...
        }
        }
 
 
        void    tick(void) {
        void    tick(void) {
                if ((m_tickcount & ((1<<28)-1))==0) {
                if ((m_tickcount & ((1<<28)-1))==0) {
                        double  ticks_per_second = m_tickcount;
                        double  ticks_per_second = m_tickcount;
 
                        time_t  seconds_passed = time(NULL)-m_start_time;
 
                        if (seconds_passed != 0) {
                        ticks_per_second /= (double)(time(NULL) - m_start_time);
                        ticks_per_second /= (double)(time(NULL) - m_start_time);
                        printf(" ********   %.6f TICKS PER SECOND\n",
                        printf(" ********   %.6f TICKS PER SECOND\n",
                                ticks_per_second);
                                ticks_per_second);
                }
                }
 
                }
 
 
                // 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;
                m_core->i_spi_miso = m_flash(m_core->o_sf_cs_n,
                m_core->i_spi_miso = m_flash(m_core->o_sf_cs_n,
                                                m_core->o_spi_sck,
                                                m_core->o_spi_sck,

powered by: WebSVN 2.1.0

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