-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Add Github actions badge New: Add more information in README
- Loading branch information
Showing
6 changed files
with
139 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "build/V${name}_testbench.h" | ||
#include "verilated.h" | ||
|
||
int main(int argc, char** argv, char** env) { | ||
|
||
Verilated::commandArgs(argc, argv); | ||
V${name}_testbench* top = new V${name}_testbench; | ||
int timer = 0; | ||
|
||
// Simulate until $$finish() | ||
while (!Verilated::gotFinish()) { | ||
|
||
// Evaluate model; | ||
top->eval(); | ||
} | ||
|
||
// Final model cleanup | ||
top->final(); | ||
|
||
// Destroy model | ||
delete top; | ||
|
||
// Return good completion status | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.