how to initialize the mega-rom with random values?
Hi, I tried to use the In System Memory Editor to set all the contents of the N identical sub-circuits' own ROM's content as random values. Since I need as more as such identical circuits as possible to do parallel computing, the only way I can came up with is use the "generate" function which looks like a "for" loop, with the number N sub-circuits I want to generate. Since the N sub-circuits have their own ROM, which need to be initialized to different random values. However if I use the megafunction to create the RAM, when initialize the mega-ROM with random values, after compiling, all the N ROMs have the same random values set, which is not what I want. So I used the In System Memory Editor to manually create random values for each ROM when the circuit is running. Since the in-system memory content editor can only support at most 255 system-level debug node, this method seems can not work to initialize all the ROMs with different random values.
Here I'd like to thank thepancake to help me point out this problem. Can anyone be kind enough to give me some precious suggestions on how to do this? It is really appreciated for your help!