M
Markus Meng
Guest
Hi all,
I need a short hint howto get the Hex-Values out of the line below
for simulation purpose. The input is of type std_logic_vector(15 downto 0)
-- a few lines from the file I read
-- I use the readline function to read one line at once using
readline(vector_file, inline);
-- now I would like to have the ten hex values per line in 10 variables ...
X"0000" X"8000" X"8000" X"8000" X"8000" X"8000" X"80fa" X"81f4" X"92ee"
X"c001"
X"0000" X"8001" X"8000" X"8001" X"c002" X"9001" X"90fb" X"91f5" X"82ef"
X"8003"
X"0000" X"8002" X"8000" X"8002" X"c004" X"9002" X"80fc" X"91f6" X"92f0"
X"8005"
X"0000" X"8003" X"8000" X"8003" X"8006" X"8003" X"90fd" X"81f7" X"82f1"
X"c007"
X"0000" X"8004" X"8000" X"8004" X"c008" X"9004" X"90fe" X"81f8" X"82f2"
X"8009"
X"0000" X"8005" X"8000" X"8005" X"800a" X"8005" X"80ff" X"91f9" X"92f3"
X"c00b"
X"0000" X"8006" X"8000" X"8006" X"800c" X"8006" X"9100" X"91fa" X"82f4"
X"c00d"
X"0000" X"8007" X"8000" X"8007" X"c00e" X"9007" X"8101" X"81fb" X"92f5"
X"800f"
X"0000" X"8008" X"8000" X"8008" X"c010" X"9008" X"8102" X"91fc" X"92f6"
X"8011"
Best regards
Markus
--
Mit freundlichen Grüssen
Markus Meng
********************************************************************
** Meng Engineering Telefon 056 222 44 10 **
** Markus Meng Natel 079 230 93 86 **
** Bruggerstr. 21 Telefax 056 222 44 34 **
** CH-5400 Baden Web www.meng-engineering.ch **
********************************************************************
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
I need a short hint howto get the Hex-Values out of the line below
for simulation purpose. The input is of type std_logic_vector(15 downto 0)
-- a few lines from the file I read
-- I use the readline function to read one line at once using
readline(vector_file, inline);
-- now I would like to have the ten hex values per line in 10 variables ...
X"0000" X"8000" X"8000" X"8000" X"8000" X"8000" X"80fa" X"81f4" X"92ee"
X"c001"
X"0000" X"8001" X"8000" X"8001" X"c002" X"9001" X"90fb" X"91f5" X"82ef"
X"8003"
X"0000" X"8002" X"8000" X"8002" X"c004" X"9002" X"80fc" X"91f6" X"92f0"
X"8005"
X"0000" X"8003" X"8000" X"8003" X"8006" X"8003" X"90fd" X"81f7" X"82f1"
X"c007"
X"0000" X"8004" X"8000" X"8004" X"c008" X"9004" X"90fe" X"81f8" X"82f2"
X"8009"
X"0000" X"8005" X"8000" X"8005" X"800a" X"8005" X"80ff" X"91f9" X"92f3"
X"c00b"
X"0000" X"8006" X"8000" X"8006" X"800c" X"8006" X"9100" X"91fa" X"82f4"
X"c00d"
X"0000" X"8007" X"8000" X"8007" X"c00e" X"9007" X"8101" X"81fb" X"92f5"
X"800f"
X"0000" X"8008" X"8000" X"8008" X"c010" X"9008" X"8102" X"91fc" X"92f6"
X"8011"
Best regards
Markus
--
Mit freundlichen Grüssen
Markus Meng
********************************************************************
** Meng Engineering Telefon 056 222 44 10 **
** Markus Meng Natel 079 230 93 86 **
** Bruggerstr. 21 Telefax 056 222 44 34 **
** CH-5400 Baden Web www.meng-engineering.ch **
********************************************************************
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----