@@ -127,23 +127,23 @@ class TESTBENCH {
127
127
virtual void tick () {
128
128
d_tickcount++;
129
129
#ifdef CLOCK_LINE_ENABLED
130
- DUT->CLOCK_WIRE = 0 ;
130
+ DUT->CLOCK_WIRE = 1 ;
131
131
#endif
132
132
eval ();
133
- if (d_trace) d_trace->dump (10 * d_tickcount - 2 );
133
+ if (d_trace) d_trace->dump (10 * d_tickcount - 5 );
134
134
135
135
#ifdef CLOCK_LINE_ENABLED
136
- DUT->CLOCK_WIRE = 1 ;
136
+ DUT->CLOCK_WIRE = 0 ;
137
137
#endif
138
138
eval ();
139
139
if (d_trace) d_trace->dump (10 * d_tickcount);
140
140
141
141
#ifdef CLOCK_LINE_ENABLED
142
- DUT->CLOCK_WIRE = 0 ;
142
+ DUT->CLOCK_WIRE = 1 ;
143
143
#endif
144
144
eval ();
145
145
if (d_trace) {
146
- d_trace->dump (10 * d_tickcount + 5 );
146
+ // d_trace->dump(10 * d_tickcount + 5);
147
147
d_trace->flush ();
148
148
}
149
149
}
@@ -285,13 +285,13 @@ class TESTER : protected TESTBENCH<DEVICE> {
285
285
286
286
~TESTER () { delete d_printer; }
287
287
288
- virtual void beforeTraceStarts () {};
288
+ virtual void beforeStart () {};
289
289
290
290
virtual void beforeAll () {};
291
291
292
292
virtual void afterAll () {};
293
293
294
- virtual void afterTraceEnds () {};
294
+ virtual void afterEnd () {};
295
295
296
296
virtual void beforeEach (TESTCASE testcase, TPRINTER *t) {};
297
297
@@ -301,10 +301,9 @@ class TESTER : protected TESTBENCH<DEVICE> {
301
301
302
302
void run () {
303
303
setColor (ForegroundColor::UNSPECIFIED, BackgroundColor::UNSPECIFIED, Effect::BOLD);
304
- std::cout << " [ now test " << SUPER::name () << " with " << d_testcases.size () << " test case(s) ]"
305
- << std::endl;
304
+ std::cout << " [ now test " << SUPER::name () << " with " << d_testcases.size () << " test case(s) ]" << std::endl;
306
305
resetColor ();
307
- beforeTraceStarts ();
306
+ beforeStart ();
308
307
309
308
d_printer->increaseIndent ();
310
309
this ->start_trace (d_vcdname.c_str ());
@@ -321,7 +320,7 @@ class TESTER : protected TESTBENCH<DEVICE> {
321
320
this ->stop_trace ();
322
321
d_printer->decreaseIndent ();
323
322
324
- afterTraceEnds ();
323
+ afterEnd ();
325
324
326
325
setColor (ForegroundColor::UNSPECIFIED, BackgroundColor::UNSPECIFIED, Effect::BOLD);
327
326
std::cout << " [ test " << SUPER::name () << " finished ]" << std::endl;
0 commit comments