Skip to content

Commit

Permalink
improve verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 22, 2025
1 parent e7e3316 commit c220726
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/projects/embed/verilator/hello/src/sim_main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "hello.h"
#include "verilated.h"

double sc_time_stamp() { return 0; }

int main(int argc, char** argv) {
VerilatedContext* contextp = new VerilatedContext;
contextp->commandArgs(argc, argv);
Expand Down
2 changes: 1 addition & 1 deletion tests/projects/embed/verilator/hello/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_requires("verilator 5.016")
add_requires("verilator")

target("hello")
add_rules("verilator.binary")
Expand Down
2 changes: 1 addition & 1 deletion tests/projects/embed/verilator/hello_vcd/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_requires("verilator 5.016")
add_requires("verilator")

target("hello")
add_rules("verilator.binary")
Expand Down
2 changes: 2 additions & 0 deletions tests/projects/embed/verilator/static/src/sim_main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "hello.h"
#include "verilated.h"

double sc_time_stamp() { return 0; }

int main(int argc, char** argv) {
VerilatedContext* contextp = new VerilatedContext;
contextp->commandArgs(argc, argv);
Expand Down
2 changes: 1 addition & 1 deletion tests/projects/embed/verilator/static/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_requires("verilator 5.016")
add_requires("verilator")

target("hello")
add_rules("verilator.static")
Expand Down

0 comments on commit c220726

Please sign in to comment.