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

Subversion Repositories tv80

[/] [tv80/] [trunk/] [sc_env/] [sc_env_top.cpp] - Diff between revs 98 and 115

Show entire file | Details | Blame | View Log

Rev 98 Rev 115
Line 1... Line 1...
#include "systemc.h"
#include "systemc.h"
#include "systemperl.h"
#include "systemperl.h"
 
#include "verilated_vcd_c.h"
#include "env_memory.h"
#include "env_memory.h"
#include "tv_responder.h"
#include "tv_responder.h"
#include "Vtv80s.h"
#include "Vtv80s.h"
#include "VT16450.h"
#include "VT16450.h"
#include "SpTraceVcd.h"
#include "SpTraceVcd.h"
Line 19... Line 20...
        bool dumping = false;
        bool dumping = false;
        bool memfile = false;
        bool memfile = false;
        int index;
        int index;
        char dumpfile_name[FILENAME_SZ];
        char dumpfile_name[FILENAME_SZ];
        char mem_src_name[FILENAME_SZ];
        char mem_src_name[FILENAME_SZ];
        SpTraceFile *tfp;
        VerilatedVcdC *tfp;
    z80_decoder dec0 ("dec0");
    z80_decoder dec0 ("dec0");
 
 
        sc_clock clk("clk125", 8, SC_NS, 0.5);
        sc_clock clk("clk125", 8, SC_NS, 0.5);
 
 
        sc_signal<bool> reset_n;
        sc_signal<bool> reset_n;
Line 177... Line 178...
    */
    */
 
 
    // Start Verilator traces
    // Start Verilator traces
    if (dumping) {
    if (dumping) {
        Verilated::traceEverOn(true);
        Verilated::traceEverOn(true);
        tfp = new SpTraceFile;
        tfp = new VerilatedVcdC;
        tv80s.trace (tfp, 99);
        tv80s.trace (tfp, 99);
        tfp->open (dumpfile_name);
        tfp->open (dumpfile_name);
    }
    }
 
 
        // check for command line argument
        // check for command line argument

powered by: WebSVN 2.1.0

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