mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-02 19:48:30 +02:00
support modports depending on other interface data declarations
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user