refactor: move to dpi module for memory access
This commit is contained in:
parent
a478ef7639
commit
97cf418c86
15 changed files with 443 additions and 207 deletions
19
npc/csrc/Flow/config.hpp
Normal file
19
npc/csrc/Flow/config.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef _NPC_CONFIG_H_
|
||||
#define _NPC_CONFIG_H_
|
||||
#include <CLI/App.hpp>
|
||||
#include <CLI/CLI.hpp>
|
||||
#include <CLI/Validators.hpp>
|
||||
#include <filesystem>
|
||||
|
||||
struct Config {
|
||||
std::filesystem::path wavefile;
|
||||
std::filesystem::path memory_file;
|
||||
uint64_t max_sim_time = 1000;
|
||||
bool memory_file_binary = {true};
|
||||
bool do_trace{false};
|
||||
void cli_parse(int argc, char **argv);
|
||||
};
|
||||
|
||||
extern Config config;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue