add CLI configurability
This commit is contained in:
@@ -47,7 +47,9 @@ int sc_main(int argc, char *argv[]) {
|
||||
desc.add_options()
|
||||
("help,h", "Print help message")
|
||||
("debug,d", "set debug level")
|
||||
("trace,t", "trace SystemC signals");
|
||||
("trace,t", "trace SystemC signals")
|
||||
("dim", po::value<uint8_t>()->default_value(16))
|
||||
("count", po::value<unsigned>()->default_value(16384));
|
||||
// clang-format on
|
||||
po::variables_map vm;
|
||||
try {
|
||||
@@ -78,7 +80,10 @@ int sc_main(int argc, char *argv[]) {
|
||||
// instantiate top level
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
perf_estimator estimator;
|
||||
top i_top("i_top", 89);
|
||||
auto const count=vm["count"].as<unsigned>();
|
||||
auto const dim = vm["dim"].as<uint8_t>();
|
||||
SCCINFO()<<"Instantiating "<<(unsigned)dim<<"x"<<(unsigned)dim<<" matrix and executing "<<count<<" accesses";
|
||||
top i_top("i_top", dim, count);
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// run simulation
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user