From: Daniel Kho
Sent: Apr 16, 2015 7:06 AM
To: "vhdl-200x@eda.org"
Subject: [vhdl-200x] Standard Package enhancementsBecause boolean_vector can't support negative ranges, I had to change this to std_ulogic_vector or unsigned instead.standard.vhd:Hi all,There are a few enhancements I would like to propose for some of our standard packages. Do let me know what you think.
type BOOLEAN_VECTOR is array (INTEGER range <>) of BOOLEAN;
type BIT_VECTOR is array (INTEGER range <>) of BIT;
type INTEGER_VECTOR is array (INTEGER range <>) of INTEGER;
type REAL_VECTOR is array (INTEGER range <>) of REAL;
type TIME_VECTOR is array (INTEGER range <>) of TIME;
...snip...
Implicit conversions doesn't make sense to me given VHDL's strong typing. Possibly bit and boolean could be considered similar types such that casting would be allowed. Having standardized TO_xxx() functions holds some appeal to me. boolean_vector <-> unsignedboolean_vector <-> bit_vectorboolean_vector <-> std_ulogic_vectorboolean <-> std_ulogicHave type conversion functions, or better, make conversions implicit between the following types:boolean <-> bit
...snip...
...snip...
This archive was generated by hypermail 2.1.8 : Thu Apr 16 2015 - 13:47:11 PDT