mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
clang-format
This commit is contained in:
parent
7eeb930c72
commit
f57c72e5db
@ -422,6 +422,7 @@ endif
|
||||
|
||||
# Use --xml flag to see the cppcheck code to use for suppression
|
||||
CPPCHECK_CPP = $(wildcard \
|
||||
$(srcdir)/examples/*/*.cpp \
|
||||
$(srcdir)/include/*.cpp \
|
||||
$(srcdir)/src/*.cpp )
|
||||
CPPCHECK_H = $(wildcard \
|
||||
|
@ -37,6 +37,6 @@ int main(int argc, char** argv, char** env) {
|
||||
// Destroy model
|
||||
delete top;
|
||||
|
||||
// Fin
|
||||
// Return good completion status
|
||||
exit(0);
|
||||
}
|
||||
|
@ -33,12 +33,13 @@ int sc_main(int argc, char* argv[]) {
|
||||
|
||||
// Simulate until $finish
|
||||
while (!Verilated::gotFinish()) {
|
||||
// Simulate 1ns
|
||||
sc_start(1, SC_NS);
|
||||
}
|
||||
|
||||
// Final model cleanup
|
||||
top->final();
|
||||
|
||||
// Fin
|
||||
// Return good completion status
|
||||
return 0;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "Vtop.h"
|
||||
|
||||
#if VM_TRACE
|
||||
# include <verilated_vcd_c.h>
|
||||
#include <verilated_vcd_c.h>
|
||||
#endif
|
||||
|
||||
vluint64_t main_time = 0;
|
||||
@ -70,6 +70,6 @@ int main(int argc, char** argv, char** env) {
|
||||
delete top;
|
||||
top = nullptr;
|
||||
|
||||
// Fin
|
||||
// Return good completion status
|
||||
exit(0);
|
||||
}
|
||||
|
@ -101,6 +101,6 @@ int main(int argc, char** argv, char** env) {
|
||||
VerilatedCov::write("logs/coverage.dat");
|
||||
#endif
|
||||
|
||||
// Fin
|
||||
// Return good completion status
|
||||
exit(0);
|
||||
}
|
||||
|
@ -55,10 +55,10 @@ int sc_main(int argc, char* argv[]) {
|
||||
sc_signal<bool> reset_l;
|
||||
sc_signal<vluint32_t> in_small;
|
||||
sc_signal<vluint64_t> in_quad;
|
||||
sc_signal<sc_bv<70> > in_wide;
|
||||
sc_signal<sc_bv<70>> in_wide;
|
||||
sc_signal<vluint32_t> out_small;
|
||||
sc_signal<vluint64_t> out_quad;
|
||||
sc_signal<sc_bv<70> > out_wide;
|
||||
sc_signal<sc_bv<70>> out_wide;
|
||||
|
||||
// Construct the Verilated model, from inside Vtop.h
|
||||
// Using unique_ptr is similar to "Vtop* top = new Vtop" then deleting at end
|
||||
@ -134,6 +134,6 @@ int sc_main(int argc, char* argv[]) {
|
||||
VerilatedCov::write("logs/coverage.dat");
|
||||
#endif
|
||||
|
||||
// Fin
|
||||
// Return good completion status
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user