memory addresses SakuraG doubt

Hello everyone, I’m starting to work with SakuraG and would like to have some help please.

I’ve found a code here where appear this with no comments:

ADDR_STATUS_CTRL = 0x0002
ADDR_MODE = 0x000C
ADDR_IP_INPUT_SELECTION = 0x0004
ADDR_IP_OUTPUT_SELECTION = 0x0008
ADDR_KEY = 0x0100

ADDR_INPUT = 0x0140
ADDR_OUTPUT = 0x0180

IP_ADDR = 1
MODE_ENCRYPTION = 0x0000
TRIGGER = 0x0001

Anyone can tell me where does each memory address come from?
And how do you know that the KEY must be placed from 0x0100 ?

Thanks in advance

Hi Salva,

Those addresses come from the SAKURA-G source code in the LX75 device. It’s basically just a simple port of some existing code, I don’t know if it’s well documented anywhere unfortunately besides the Verilog source code. See lines 129-175 of github.com/newaetech/chipwhispe … /lbus_if.v .

Regards,

-Colin

thanks for the reply Colin.

Do you know what is ADDR_STATUS_CTRL for?

Hi Salva,

Not sure actually… might be able to go through the code to check? I just set them to the values they claim :wink:

-Colin