Subject: [sv-bc] 18.5.1-2, modports -- proposal
From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Wed Feb 26 2003 - 10:24:43 PST
Proposal --
----------------------------
APPEND to the final paragraph of 18.5.1 --
"The only exception is when a modport is used to import a function
or task from another module, in which case a full prototype
ahall be used."
This assumes that functions, as well as tasks, can be exported from
module to module via modports. I don't see any examples of that in
the LRM, but don't see any prohibition either. If this assumption
is wrong, then "function or" should be removed from the above append.
----In the example of 18.5.2, CHANGE --
" import task masterRead(input logic [7:0] raddr), task masterWrite(input logic[7:0] waddr)); // import requires the full task prototype "
TO --
" import task masterRead(), task masterWrite()); // import into module that uses the modport " ------------------------------
This archive was generated by hypermail 2b28 : Wed Feb 26 2003 - 10:25:14 PST