Skip to content

Commit

Permalink
Add C source file to example using published dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tudortimi committed Jun 1, 2024
1 parent 34fe277 commit c3ee278
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ module some_project;
function automatic void do_stuff();
some_class o = new();
`some_published_dependency_macro
some_dpi_func();
endfunction
endmodule
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.verificationgentleman.gradle.hdvl.systemverilog'
id 'com.verificationgentleman.gradle.hdvl.c'
id 'maven-publish'
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <stdio.h>

void some_dpi_func() {
printf("hello from C");
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package some_published_dependency;
`include "some_class.svh"
import "DPI-C" some_dpi_func();
endpackage

0 comments on commit c3ee278

Please sign in to comment.