Hello, currently VHDL doesn't seem to support a construct which allows the usage of hex numbers instead of integer numbers. For example sometimes I encode my addresses like this: CONSTANT C_ADDRESS_WIDTH : integer := 4; CONSTANT C_READ_DATA : unsigned(C_ADDRESS_WIDTH - 1 DOWNTO 0) := to_unsigned(1, C_ADDRESS_WIDTH); it would be nice if I could write it like this or something similar: CONSTANT C_ADDRESS_WIDTH : integer := 12; CONSTANT C_READ_DATA : unsigned(C_ADDRESS_WIDTH - 1 DOWNTO 0) := to_unsigned(0x1, C_ADDRESS_WIDTH); This way if I have to adjust the address width there would be just one position in the code which I would have to modify. The hexadecimal coding would be more in line with the address encoding the microcontroller programmers use. Other suggestions would be welcomed though. Best regards i.A. Martin Stolpe ---------------------------------------------------------------------------------------------------------- Systemingenieur R&D Smart Embedded Systems (SW) NewTec GmbH System-Entwicklung und Beratung Heinrich-von-Stephan-Str. 8B D-79100 Freiburg Telefon : +49 (0) 761 21117-40 Telefax : +49 (0) 761 21117-41 email : martin.stolpe@newtec.de web : http://www.newtec.de ---------------------------------------------------------------------------------------------------------- Geschäftsführer: Johannes Werbach, Harald Molle, Ulrich Schwer, Michael Tröscher Registergericht: Memmingen - HRB 7236 USt.-IdNr. DE130850199 ---------------------------------------------------------------------------------------------------------- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Dec 20 03:28:22 2012
This archive was generated by hypermail 2.1.8 : Thu Dec 20 2012 - 03:29:01 PST