Tests: Use VM_PREFIX

This commit is contained in:
Wilson Snyder 2024-11-16 09:22:38 -05:00
parent 0d5fedce92
commit 7e9535381a
2 changed files with 6 additions and 4 deletions

View File

@ -10,10 +10,12 @@
// OS header
#include "verilatedos.h"
// Generated header
#include "Vt_force_mid.h"
#include VM_PREFIX_INCLUDE
// General headers
#include "verilated.h"
std::unique_ptr<Vt_force_mid> topp;
std::unique_ptr<VM_PREFIX> topp;
int main(int argc, char** argv) {
uint64_t sim_time = 1100;
const std::unique_ptr<VerilatedContext> contextp{new VerilatedContext};

View File

@ -7,7 +7,7 @@
#include "verilated.h"
#include "TestCheck.h"
#include "Vt_tri_top_en_out.h"
#include VM_PREFIX_INCLUDE
#include <ctime>
@ -18,7 +18,7 @@ int main(int argc, char** argv, char**) {
const std::unique_ptr<VerilatedContext> contextp{new VerilatedContext};
contextp->commandArgs(argc, argv);
// Construct the Verilated model, from Vtop.h generated from Verilating
const std::unique_ptr<Vt_tri_top_en_out> topp{new Vt_tri_top_en_out{contextp.get()}};
const std::unique_ptr<VM_PREFIX> topp{new VM_PREFIX{contextp.get()}};
// Initial input
topp->drv_en = 0;