Difference between revisions of "Component: Lookup tables (Storage)"
(XML import of modded components) |
(XML import of component help) |
||
Line 4: | Line 4: | ||
|- | |- | ||
| width="20%" style="color: gray;" | Author | | width="20%" style="color: gray;" | Author | ||
− | | | + | | Matrix Multimedia |
|- | |- | ||
| width="20%" style="color: gray;" | Version | | width="20%" style="color: gray;" | Version | ||
− | | 1. | + | | 1.4 |
|- | |- | ||
| width="20%" style="color: gray;" | Category | | width="20%" style="color: gray;" | Category | ||
Line 16: | Line 16: | ||
==[[File:Component Icon dfb4d07a_3d70_45d5_83ef_07e3c95d86ab.png|Image]] Lookup tables component== | ==[[File:Component Icon dfb4d07a_3d70_45d5_83ef_07e3c95d86ab.png|Image]] Lookup tables component== | ||
− | A lookup-table | + | A lookup-table component allowing an easy way to place arrays of static data into ROM memory. |
+ | The LUT data is accessed directly allowing very low overhead when collecting the data. | ||
+ | |||
==Examples== | ==Examples== | ||
Line 59: | Line 61: | ||
:[[Variable Types|FLOAT]] ''Dest'' | :[[Variable Types|FLOAT]] ''Dest'' | ||
+ | |||
+ | |||
+ | '''Return value''' | ||
+ | |||
+ | :''This call does not return a value'' | ||
+ | |||
+ | |||
+ | ===<span style="font-weight: normal;"><u><tt>GenerateCache</tt></u></span>=== | ||
+ | Generates the C code for the arrays so it does not need to be done at compile time | ||
+ | |||
+ | '''Parameters''' | ||
+ | |||
+ | :''This macro has no parameters'' | ||
Line 234: | Line 249: | ||
This property is of type ''True or false'' and can be referenced with the variable name ''EmbedIntoC''. | This property is of type ''True or false'' and can be referenced with the variable name ''EmbedIntoC''. | ||
− | + | Flag to decide if code should be generated to C or not | |
+ | |||
+ | If this is false then the LUT is simulation only |
Revision as of 17:02, 11 November 2013
Author | Matrix Multimedia |
Version | 1.4 |
Category | Storage |
Contents
Lookup tables component
A lookup-table component allowing an easy way to place arrays of static data into ROM memory. The LUT data is accessed directly allowing very low overhead when collecting the data.
Examples
No additional examples
Downloadable macro reference
GetFloat
Gets a float from the LUT
Parameters
- UINT Index
Return value
GetInt
Gets an integer from the LUT
Parameters
- UINT Index
Return value
Simulation macro reference
GetFloats
Gets the float LUT
Parameters
- FLOAT Dest
Return value
- This call does not return a value
GenerateCache
Generates the C code for the arrays so it does not need to be done at compile time
Parameters
- This macro has no parameters
Return value
- This call does not return a value
GetIntCount
Gets the number of int LUT entries
Parameters
- This macro has no parameters
Return value
ClearInts
Clear all int LUT values
Parameters
- This macro has no parameters
Return value
- This call does not return a value
GetFloatCount
Gets the number of float LUT entries
Parameters
- This macro has no parameters
Return value
GetIntBits
Gets the number of bits-per-int in the LUT
Parameters
- This macro has no parameters
Return value
SetIntBits
Sets the size of an int LUT entry
Parameters
- BYTE Bits
Return value
- This call does not return a value
GetFloatBits
Gets the number of bits-per-float in the LUT
Parameters
- This macro has no parameters
Return value
ClearFloats
Clear all float LUT values
Parameters
- This macro has no parameters
Return value
- This call does not return a value
GetInts
Gets the int LUT
Parameters
- ULONG Dest
Return value
- This call does not return a value
SetFloatBits
Sets the size of a float LUT entry
Parameters
- BYTE Bits
Return value
- This call does not return a value
AddInt
Int to add to the int array
Parameters
- ULONG Value
- Int to add to the int array
Return value
- This call does not return a value
AddFloat
Add a float to the floating point LUT
Parameters
- FLOAT Value
- Floating point values
Return value
- This call does not return a value
Property reference
Integers
This property is of type Multiple lines of text and can be referenced with the variable name intfixed.
No additional information
Floats
This property is of type Multiple lines of text and can be referenced with the variable name floatfixed.
No additional information
Embed Into C
This property is of type True or false and can be referenced with the variable name EmbedIntoC.
Flag to decide if code should be generated to C or not
If this is false then the LUT is simulation only