EmbDev.net

Forum: µC & Digital Electronics initialization of EBR based ROM in Lattice MachXO2


von Thomas Hergenhahn (Guest)


Rate this post
useful
not useful
I'm currently learning how to work with FPGAs. Currently, I'm working 
with a Lattice  MachXO2 family device. I implemented some logic and a 
CPU core.
In order to run a program on that core, I currently do these steps:
- (cross-)assemble the program on a pc
- convert the resulting binary to a .mem file (addressed hex)
- I let Lattice diamond IPexpress regenerate the ROM using that .mem 
file
- I restart the whole tool chain to generate a .jed file (takes 5 to 45 
min)

in IPexpress, I checked the option "allow update of inititialization 
file stored in UFM"

What I want to do is to generate new initialization data from a new .mem 
file and either combine it with the existing logic configuraton into a 
new .jed file. Or, generate a .jed file to program only the UFM part.

I can write UFM pages.

What I cannot do is convert a .mem file to the apropriate pattern of 0s 
and 1s the .jed file is made of.
I could not find a tool for that.
I can find where the initialization data starts in the .jed file
But I cannot figure out how the data from the .mem file is converted to 
the 0s and 1s in the .jed file.

I shall appreciate any help or hints

von Chris C. (customchris)


Rate this post
useful
not useful
I could really use your help, Im using a machxo2 7000HC and im in 
desperate need of using the UFM to store and read 2 bytes, or just 12 
bits. This is something over my head at this moment, everything else in 
my project is done. I would really appreciate it. Hope we can work 
something out, i really don't want to use external spi flash for just 12 
bits.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.