RE: [sv-bc] RE: [sv-ec] Inconsistencies in virtual interfaces and modports

From: Stuart Sutherland <stuart_at_.....>
Date: Thu Jul 19 2007 - 22:34:41 PDT
I would like to add support for Jonathan's suggestion that the standard be
more explicit that variables used in interfaces have a single source
semantic.  This has been my expectation all along, and I teach that rule in
my training courses.  Students, read "users", agree that this is an
important semantic restriction on the use of variables.  In fact, this very
topic came up in a class I was teaching today, and the student asking the
question wanted assurance that the use of variables in an interface would
enforce the single-source coding style required in their design work.

The same semantic restriction needs to be enforced when uwire is used in an
interface.

Stu
~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart Sutherland
Sutherland HDL, Inc.
stuart@sutherland-hdl.com
503-692-0898
 

> -----Original Message-----
> From: owner-sv-bc@server.eda.org 
> [mailto:owner-sv-bc@server.eda.org] On Behalf Of Jonathan Bromley
> Sent: Wednesday, July 18, 2007 6:01 PM
> To: sv-ec@server.eda-stds.org; sv-bc@server.eda-stds.org
> Subject: [sv-bc] RE: [sv-ec] Inconsistencies in virtual 
> interfaces and modports
> 
> With (muted) apologies for following-up my own post...
> 
> > Recent discussion of the semantics of a modport element with
> > output direction has converged on the idea that modport output
> > to a variable in the interface represents a continuous 
> > assignment to the variable from something in the connected
> > module.  I'm fairly sure that most tools currently get 
> > this wrong
> 
> Of three major simulators:
> - One doesn't error on multiple explicit continuous assigns
>   to a variable - not even when both assigns are in the same
>   scope as the variable itself -  so it's no big surprise 
>   that it also doesn't error on multiple writes to a 
>   variable in an interface via "output" modports.
> - Two correctly report multiple explicit continuous assigns
>   to a variable, but do NOT report any error on multiple 
>   writes to an interface variable via "output" modports.
> 
> So there is *absolutely no* de-facto support for the consensus
> opinion I mentioned in the earlier post, but there is strong
> de-facto support for the "output === ref" position that I 
> mistakenly took earlier in the discussion.
> 
> Do I simply submit bug reports to three vendors, or do we need 
> some LRM clarification?
> -- 
> Jonathan Bromley, Consultant
> 
> DOULOS - Developing Design Know-how
> VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
> 
> Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, 
> Hampshire, BH24 1AW, UK
> Tel: +44 (0)1425 471223                   Email: 
> jonathan.bromley@doulos.com
> Fax: +44 (0)1425 471573                           Web: 
> http://www.doulos.com
> 
> The contents of this message may contain personal views which 
> are not the views of Doulos Ltd., unless specifically stated.
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> 
> 



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jul 19 22:35:06 2007

This archive was generated by hypermail 2.1.8 : Thu Jul 19 2007 - 22:36:39 PDT