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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [bench/] [cpp/] [testb.h] - Diff between revs 2 and 36

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

Rev 2 Rev 36
Line 48... Line 48...
        virtual void    eval(void) {
        virtual void    eval(void) {
                m_core->eval();
                m_core->eval();
        }
        }
 
 
        virtual void    tick(void) {
        virtual void    tick(void) {
                m_core->i_clk = 0;
 
                eval();
 
                m_core->i_clk = 1;
                m_core->i_clk = 1;
                eval();
                eval();
 
                m_core->i_clk = 0;
 
                eval();
 
 
                m_tickcount++;
                m_tickcount++;
        }
        }
 
 
        virtual void    reset(void) {
        virtual void    reset(void) {
                m_core->i_rst = 1;
                m_core->i_rst = 1;
                tick();
                tick();
                m_core->i_rst = 0;
                m_core->i_rst = 0;
                m_tickcount = 0l;
                m_tickcount = 0l;
                printf("RESET\n");
                // printf("RESET\n");
        }
        }
};
};
 
 
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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