mirror of
https://github.com/verilator/verilator.git
synced 2025-07-31 07:56:10 +00:00
Tests: Make some includes more generic to help copying tests. No test change.
This commit is contained in:
parent
55ad950609
commit
21b2e874ce
@ -2,11 +2,7 @@
|
||||
// any use, without warranty, 2020 by Wilson Snyder.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
// Test defines
|
||||
// Generated header
|
||||
#include "Vt_clk_inp_init.h"
|
||||
// General headers
|
||||
#include "verilated.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
void oneTest(int argc, char** argv, int seed) {
|
||||
uint64_t sim_time = 1000;
|
||||
|
@ -9,7 +9,7 @@
|
||||
//
|
||||
//*************************************************************************
|
||||
|
||||
#include <Vt_const_bitoptree_bug3096.h>
|
||||
#include VM_PREFIX_INCLUDE
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_dpi_vams.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
//======================================================================
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_flag_fi.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
//======================================================================
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_func_rand.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
double sc_time_stamp() { return 0; }
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "verilated.h"
|
||||
|
||||
#include "Vt_gantt_two.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_math_imm2.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
double sc_time_stamp() { return 0; }
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_mem_slot.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_multitop_sig.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "verilated.h"
|
||||
#include "verilated_vcd_c.h"
|
||||
|
||||
#include "Vt_order_multidriven.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
double sc_time_stamp() { return 0; }
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <verilated.h>
|
||||
|
||||
#include "Vt_order_quad.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
//======================================================================
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#include VM_PREFIX_INCLUDE
|
||||
#include "Vt_sc_names.h"
|
||||
|
||||
using namespace sc_core;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <verilated_syms.h>
|
||||
#include <verilated_vcd_c.h>
|
||||
|
||||
#include "Vt_scope_map.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
@ -4,7 +4,7 @@
|
||||
// any use, without warranty, 2019 by Wilson Snyder.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#include "Vt_timescale_parse.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
VM_PREFIX* tb = nullptr;
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <verilated.h>
|
||||
#include <verilated_vcd_c.h>
|
||||
|
||||
#include "Vt_trace_noflag_bad.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
std::unique_ptr<VerilatedContext> contextp{new VerilatedContext};
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <verilated.h>
|
||||
#include <verilated_vcd_c.h>
|
||||
|
||||
#include "Vt_trace_open_wrong_order_bad.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
VerilatedContext ctx;
|
||||
|
@ -4,7 +4,7 @@
|
||||
// without warranty, 2008 by Lane Brooks.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#include "Vt_tri_inout.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
VM_PREFIX* tb = nullptr;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// without warranty, 2008 by Lane Brooks.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#include "Vt_tri_pullup.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
VM_PREFIX* tb = nullptr;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
// any use, without warranty, 2020 by Wilson Snyder.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#include "Vt_tri_select.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
VM_PREFIX* tb = nullptr;
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include "verilated.h"
|
||||
|
||||
#include "Vt_var_overwidth_bad.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
//======================================================================
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
#include "verilated.h"
|
||||
#include "verilated_vpi.h"
|
||||
|
||||
#include "Vt_vpi_cb_iter.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
#include "vpi_user.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "verilated.h"
|
||||
#include "verilated_vpi.h"
|
||||
|
||||
#include "Vt_vpi_onetime_cbs.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "verilated.h"
|
||||
#include "verilated_vpi.h"
|
||||
|
||||
#include "Vt_vpi_repetitive_cbs.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
#endif
|
||||
|
||||
#include <cstdio>
|
||||
|
@ -3,7 +3,7 @@
|
||||
// any use, without warranty, 2020 by Wilson Snyder.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#include "Vt_vpi_sc.h"
|
||||
#include VM_PREFIX_INCLUDE
|
||||
|
||||
VM_PREFIX* tb = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user