> Another use case for this is when we are modelling memories, one > could possibly apply the to_integer function on an address bus to > read contents of a memory. For example: > > q <= rom(to_integer(addr)) when rising_edge(clk); > > If "addr" contains 'X's, then zero would be returned. Yes, the > simulator would warn us of a meta-value detection, but wouldn't it > be better if the to_integer were to return something that > corresponds to NaN for example? I think seeing a red line on the > databus in simulation whenever the address lines are invalid would > give the designer better insight to what went wrong, as compared to > a few warning messages. But then the simulation would immediately stop as 'rom(NaN)' is not defined. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Oct 27 10:44:27 2014
This archive was generated by hypermail 2.1.8 : Mon Oct 27 2014 - 10:44:55 PDT