refactor: move to dpi module for memory access

This commit is contained in:
xinyangli 2024-04-03 22:39:33 +08:00
parent a478ef7639
commit 97cf418c86
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
15 changed files with 443 additions and 207 deletions

19
npc/csrc/Flow/config.hpp Normal file
View 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