This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Complier option to treat EMIF as 16-bit memory vs. byte addressable?

Porting C code to the 6416 processor, using EMIFA for FPGA register access. Code declares registers as bit structures and writes to a single bit. Compiler generates byte write instructions. Unfortunately, the board designers did not connect the BE (Byte Enables) signals so the write is treated as a 16-bit write by the FPGA causing corruption. I want to tell the compiler to treat the EMIF peripheral device as 16-bit memory & not byte addressable. Anyone know how to do this? My other option is to change the code but these writes are distributed throughout the code & risk of messing this up is high. I'm having the hardware designers looking into connecting the BE signal as use it was intended. Thanks for any suggestions!