Prev: matlab compiler error
Next: Bits to bytes
From: Wayne Padgett on 19 Jul 2010 15:49 I am writing embedded matlab code that will eventually target an FPGA. If I use a function to implement a lookup table, I want to make sure the constant table only occurs once. How should I implement the table? I can't find a constant declaration, and initializing it within the function seems likely to produce many copies if I reuse the function. I could pass the table in as an input to the function, but that might be tedious if the function is a low-level one, called by many others. Is a global variable the best answer?
|
Pages: 1 Prev: matlab compiler error Next: Bits to bytes |