S
Shannon
Guest
hello all. Big time newbie here.
Hardware: Cyclone
Software: Quartus II
Problem: I have to implement a lookup table of sorts and I have no
idea what I'm doing.
A counter is counting the duration of an external event. When the
event ends I need to take the final count and retreive a value from a
lookup table and assign it to another variable.
A) I assume I will use the 'table' construct. but what if the table
is huge?
B) It's a 24bit counter so the possilbe values are quite large. The
table will contain the same value for large ranges of counts. I.E. if
count is anywhere between 10 and 100 the lookup value is the same. Is
there a way to minimize the table so that I only have to list index
ranges? In other words it would be nice if the index isn't found, to
take the 'nearest' index.
C) Is there some entirely different way to code the lookup table?
Thanks in advance for any help you can give,
Shannon
Hardware: Cyclone
Software: Quartus II
Problem: I have to implement a lookup table of sorts and I have no
idea what I'm doing.
A counter is counting the duration of an external event. When the
event ends I need to take the final count and retreive a value from a
lookup table and assign it to another variable.
A) I assume I will use the 'table' construct. but what if the table
is huge?
B) It's a 24bit counter so the possilbe values are quite large. The
table will contain the same value for large ranges of counts. I.E. if
count is anywhere between 10 and 100 the lookup value is the same. Is
there a way to minimize the table so that I only have to list index
ranges? In other words it would be nice if the index isn't found, to
take the 'nearest' index.
C) Is there some entirely different way to code the lookup table?
Thanks in advance for any help you can give,
Shannon