Skip to content

Commit 25416f3

Browse files
committed
example checkpoint
1 parent 74e1338 commit 25416f3

File tree

7 files changed

+84
-15
lines changed

7 files changed

+84
-15
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 2018 XtremeEDA Corp.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

bin/genMocks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def defaultMacros(numargs):
1919
def function_macro(numargs, fout):
2020
fout.write ('`define SVMOCK_FUNC%0d(NAME,RETURN%s) \\\n' % (numargs, allArgString(numargs, ',', ',', '=NODEFAULT')) +
2121
defaultMacros(numargs) +
22+
'`undef invoke%0d_``NAME \\\n' % numargs +
23+
'`undef args%0d_``NAME \\\n' % numargs +
2224
'`define invoke%0d_``NAME`` virtual %s \\\n' % (numargs, functionDecl('NAME',numargs,'RETURN')) +
2325
'`define args%0d_``NAME`` %s \\\n' % (numargs, method_arg_names(numargs)) +
2426

@@ -45,6 +47,8 @@ def function_macro(numargs, fout):
4547
def void_function_macro(numargs, fout):
4648
fout.write ('`define SVMOCK_VFUNC%0d(NAME%s) \\\n' % (numargs, allArgString(numargs, ',', ',', '=NODEFAULT')) +
4749
defaultMacros(numargs) +
50+
'`undef invoke%0d_``NAME \\\n' % numargs +
51+
'`undef args%0d_``NAME \\\n' % numargs +
4852
'`define invoke%0d_``NAME`` virtual %s \\\n' % (numargs, functionDecl('NAME',numargs)) +
4953
'`define args%0d_``NAME`` %s \\\n' % (numargs, method_arg_names(numargs)) +
5054

@@ -64,6 +68,8 @@ def void_function_macro(numargs, fout):
6468
def task_macro(numargs, fout):
6569
fout.write ('`define SVMOCK_TASK%0d(NAME%s) \\\n' % (numargs, allArgString(numargs, ',', ',', '=NODEFAULT')) +
6670
defaultMacros(numargs) +
71+
'`undef invoke%0d_``NAME \\\n' % numargs +
72+
'`undef args%0d_``NAME \\\n' % numargs +
6773
'`define invoke%0d_``NAME`` virtual %s \\\n' % (numargs, taskDecl('NAME',numargs)) +
6874
'`define args%0d_``NAME`` %s \\\n' % (numargs, method_arg_names(numargs)) +
6975

examples/class/bedrock/svunit.f

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
bedrock_pkg.sv
22

3+
-parseinfo macro
4+
35
+incdir+../../../src
46
../../../src/svmock_pkg.sv

examples/class/uvm_driver/apb_sequence_unit_test.sv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module apb_sequence_unit_test;
4444
/* Place Setup Code Here */
4545
`ON_CALL(uut, start).will_by_default("_start");
4646

47-
uut.randomize();
47+
void'(uut.randomize());
4848
endtask
4949

5050

@@ -75,18 +75,18 @@ module apb_sequence_unit_test;
7575
//===================================
7676
`SVUNIT_TESTS_BEGIN
7777

78-
`SVTEST(start)
78+
`SVTEST(start_and_finish)
7979
`EXPECT_CALL(uut, start_item).exactly(uut.num_transactions);
8080
`EXPECT_CALL(uut, start_item).at_most(10);
8181
`EXPECT_CALL(uut, start_item).at_least(7);
8282

8383
`EXPECT_CALL(uut, finish_item).exactly(uut.num_transactions);
8484

85-
uut.start(uut.sqr);
85+
uut.start(null);
8686
`SVTEST_END
8787

8888
`SVTEST(req_constraints)
89-
uut.start(uut.sqr);
89+
uut.start(null);
9090

9191
repeat (uut.num_transactions) begin
9292
uut.get_response(req);

examples/class/uvm_driver/svunit.f

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
apb_pkg.sv
33

44
//-parseinfo macro
5+
//-Epretty blat
56

67
+incdir+$SVUNIT_INSTALL/svunit_base/util
78
+incdir+../../../src

0 commit comments

Comments
 (0)