Le 2014-10-28 00:19, Jim Lewis a écrit : > Dan, > Why not just the following: > q <= rom(to_integer_or_die(addr)) when rising_edge(clk); > > Where to_integer_or_die is defined as follows: > >> function to_integer_or_die ( A : unsigned) return integer is >> begin >> if is_x(A) then >> report "to_integer_or_die contains meta-values" severity >> failure ; >> return 0 ; >> else >> return to_integer(A) ; >> end if ; >> end function to_integer_or_die ; OK, Jim beat me by a few minutes :-D -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Oct 27 16:25:22 2014
This archive was generated by hypermail 2.1.8 : Mon Oct 27 2014 - 16:25:31 PDT