From 11f6f461245dc5bc5208d84f787bcdd8c2697cb2 Mon Sep 17 00:00:00 2001 From: Tudor Timi Date: Sun, 26 May 2024 17:55:44 +0200 Subject: [PATCH] Add exported header to example using published dependency --- .../using-published/some-project/src/main/sv/some_project.sv | 2 ++ .../src/main/sv_headers/some_published_dependency_macros.svh | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 examples/using-published/some-published-dependency/src/main/sv_headers/some_published_dependency_macros.svh diff --git a/examples/using-published/some-project/src/main/sv/some_project.sv b/examples/using-published/some-project/src/main/sv/some_project.sv index 0dc52b3..a38db2d 100644 --- a/examples/using-published/some-project/src/main/sv/some_project.sv +++ b/examples/using-published/some-project/src/main/sv/some_project.sv @@ -1,10 +1,12 @@ module some_project; import some_published_dependency::*; + `include "some_published_dependency_macros.svh" initial do_stuff(); function automatic void do_stuff(); some_class o = new(); + `some_published_dependency_macro endfunction endmodule diff --git a/examples/using-published/some-published-dependency/src/main/sv_headers/some_published_dependency_macros.svh b/examples/using-published/some-published-dependency/src/main/sv_headers/some_published_dependency_macros.svh new file mode 100644 index 0000000..752a8ab --- /dev/null +++ b/examples/using-published/some-published-dependency/src/main/sv_headers/some_published_dependency_macros.svh @@ -0,0 +1,2 @@ +`define some_published_dependency_macro \ + $display("Hello from macro");