adds MSVC compatibility fixes
This commit is contained in:
@ -16,8 +16,13 @@
|
||||
|
||||
#include <boost/program_options.hpp>
|
||||
#include <tgc_vp/tb.h>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#ifdef ERROR
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
const std::string core_path{"tb.top.core_complex"};
|
||||
|
||||
using namespace sysc;
|
||||
|
@ -15,8 +15,10 @@ tb::tb(const sc_core::sc_module_name &nm): sc_core::sc_module(nm) {
|
||||
gpio_s[i].in(top.pins_o[i]);
|
||||
top.pins_i[i](gpio_s[i].out);
|
||||
}
|
||||
#ifndef WIN32
|
||||
// terminal
|
||||
terminal.tx_o(gpio_s[16].in);
|
||||
gpio_s[17].out(terminal.rx_i);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,9 @@ public:
|
||||
tgc_vp::rst_gen rst_gen{"rst_gen"};
|
||||
sc_core::sc_vector<tlm::scc::tlm_signal<sc_dt::sc_logic>> gpio_s{"gpio_s", 32};
|
||||
sc_core::sc_signal<bool> rst_n{"rst_n"};
|
||||
#ifndef WIN32 // Seasocks not available under windows
|
||||
vpvper::generic::terminal terminal{"terminal"};
|
||||
#endif
|
||||
};
|
||||
|
||||
} /* namespace tgc_vp */
|
||||
|
Reference in New Issue
Block a user