2014-11-07 07:50:11 -05:00
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
|
|
|
//
|
|
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-26 20:24:34 -05:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2006 Wilson Snyder
|
2020-03-21 11:24:24 -04:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2014-11-07 07:50:11 -05:00
|
|
|
|
|
|
|
|
#include <verilated.h>
|
|
|
|
|
|
2022-08-05 10:56:57 +01:00
|
|
|
#include "Vt_enum_public.h"
|
2014-11-07 07:50:11 -05:00
|
|
|
#include "Vt_enum_public_p3.h"
|
|
|
|
|
#include "Vt_enum_public_p62.h"
|
|
|
|
|
|
2021-01-13 20:01:10 -05:00
|
|
|
double sc_time_stamp() { return 0; }
|
|
|
|
|
|
2019-11-09 20:35:12 -05:00
|
|
|
int main(int argc, char* argv[]) {
|
2014-11-07 07:50:11 -05:00
|
|
|
Verilated::debug(0);
|
2023-01-21 14:05:11 -05:00
|
|
|
Verilated::commandArgs(argc, argv);
|
|
|
|
|
|
2023-02-23 06:14:54 -05:00
|
|
|
VM_PREFIX* topp = new VM_PREFIX;
|
2014-11-07 07:50:11 -05:00
|
|
|
|
|
|
|
|
// Make sure public tag worked
|
2017-09-30 13:30:01 -04:00
|
|
|
if (Vt_enum_public_p3::ZERO == Vt_enum_public_p3::ONE) {}
|
|
|
|
|
if (Vt_enum_public_p62::ZERO == Vt_enum_public_p62::ALLONE) {}
|
2014-11-07 07:50:11 -05:00
|
|
|
|
2020-10-27 20:03:17 -04:00
|
|
|
for (int i = 0; i < 10; i++) { //
|
2018-10-27 10:03:28 -04:00
|
|
|
topp->eval();
|
2014-11-07 07:50:11 -05:00
|
|
|
}
|
2020-11-17 12:37:55 +01:00
|
|
|
|
|
|
|
|
topp->final();
|
|
|
|
|
VL_DO_DANGLING(delete topp, topp);
|
2014-11-07 07:50:11 -05:00
|
|
|
}
|