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

Subversion Repositories xge_mac

[/] [xge_mac/] [trunk/] [tbench/] [systemc/] [sc_cpu_if.h] - Diff between revs 7 and 17

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

Rev 7 Rev 17
Line 98... Line 98...
 
 
    scoreboard *sb;
    scoreboard *sb;
    scoreboard::sbSourceId sb_id;
    scoreboard::sbSourceId sb_id;
 
 
    sc_mutex bus_lock;
    sc_mutex bus_lock;
    sc_event bus_start;
    sc_semaphore bus_start;
    sc_semaphore bus_done;
    sc_semaphore bus_done;
 
 
    uint bus_addr;
    uint bus_addr;
    uint bus_data;
    uint bus_data;
    bool bus_write;
    bool bus_write;
Line 130... Line 130...
    // Threads
    // Threads
 
 
    void transactor();
    void transactor();
    void monitor();
    void monitor();
 
 
    SC_CTOR(cpu_if): bus_done(0) {
    SC_CTOR(cpu_if): bus_start(0), bus_done(0) {
 
 
        SC_CTHREAD (monitor, wb_clk_i.pos());
        SC_CTHREAD (monitor, wb_clk_i.pos());
        SC_CTHREAD (transactor, wb_clk_i.pos());
        SC_CTHREAD (transactor, wb_clk_i.pos());
 
 
    }
    }

powered by: WebSVN 2.1.0

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