RE: [sv-bc] Proposal for Interface Specialization in Port Declarations

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Mon Jan 17 2011 - 03:47:14 PST

This is related to Mantis 2573 ("allow parameter selected from an interface port to be a constant expression").

Shalom

> (2)
> interface video_bus#(parameter w=8);
> logic valid; logic [w:1] data;
> endinterface
>
> module multiply_by_2 (
> intf_video_bus bus_in,
> intf_video_bus#(.w(bus_in.w+1)) bus_out
> );
>
> Here, the two interfaces that need to be connected have a certain
> relationship. One does not care about the parametrisation of the
> incoming 'bus_in', but 'bus_out' must have one more bit than
> 'bus_in'.
> The language currently has no way to describe this intent.

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jan 17 03:49:06 2011

This archive was generated by hypermail 2.1.8 : Mon Jan 17 2011 - 03:49:17 PST