support modports depending on other interface data declarations

This commit is contained in:
Zachary Snow
2020-06-19 20:07:57 -04:00
parent 369af00137
commit 8ae925d92e
3 changed files with 53 additions and 34 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
interface I;
parameter WIDTH = 32;
logic [WIDTH-1:0] data = 0;
function compute_offset;
return 1;
endfunction
localparam OFFSET = compute_offset();
logic [WIDTH-OFFSET:0] data = 0;
modport P(input data);
endinterface