Skip to content

Commit

Permalink
更新 svuvm.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Git authored Jun 18, 2024
1 parent d8344ef commit 760929b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/svuvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ namespace py = pybind11;

void wait_unit(int n);
void start_seq(const char* seq_name, const char* sqr_name);
void write_reg(int address, int data);
void read_reg(int address, int *data);

PYBIND11_MODULE(svuvm, m) {
m.doc() = "svuvm api module";

m.def("wait_unit", &wait_unit, "wait unit time");
m.def("start_seq", &start_seq, "start seq on sqr");
m.def("write_reg", &write_reg, "write register");
m.def("read_reg", &read_reg, "read data");

}

void py_func(const char* mod_name, const char* func_name, const char* mod_paths) {
Expand Down

0 comments on commit 760929b

Please sign in to comment.