kevin....@xilinx.com
unread,May 23, 2013, 12:28:14 PM5/23/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I had the same experience recently in which I had to make four almost-identical modules so I tried passing in the type as a generic, which looks like this:
entity delay is
generic (type DATATYPE);
port (...
In my notes I see that this was supported by my synthesizer (Synplify Pro) but not by Modelsim 10.1d, which despite being sold for ridiculous prices, does not support basic features from a standard from 2008, which if I calculate correctly, was FIVE YEARS AGO.
Even if this feature is supported, it's not really that great. It would be preferable to have an unconstrained type, so you could do something like this:
signal internal_sig : data_in'type(data_in'range);
Your other option is to use Verilog.