Re: [myhdl-list] Shadow signal
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-02-03 22:06:39
|
On 2/3/2015 3:55 PM, Raman Muthukrishnan wrote: > Hi Chris, > Thank you for your email. > This is the line of code that is not getting translated. ask_price_levels = [ask_price_levels_i((i+1)*WIDTH, i*WIDTH) for i in range(0, NUM_LEVELS)] Yes, definitely. That line exists outside of the MyHDL generator (the code in the function decorated by an @alway*). This is what we call the elaboration code, this code will not be converted. This line is creating a bunch of references to the bits in ask_price_levels_i, two different structures to represent (access) the same thing. Yes, you should be able to use this to split the input bus (as readers only) but it all depends on how you use ask_price_levels after creating all the shadows. Hope that helps, Chris |