Hi, I was trying to run a modified version of the ...
# mpw-6plus-silicon
s
Hi, I was trying to run a modified version of the blink.c and demos.c code provided to test the logic analyser read and write. Specifically, I toggle the bit 123 (bit 27 of reg_la3_data) and try to read back from reg_la3_data_in (bit 27). From the code, I was printing both the reg_la3_data_in (line 292) and reg_la3_data (line 295). We see the reg_la3_data toggles but the reg_la3_data_in does not toggle. We tried setting reg_la3_iena to both 0 and 1, which did not work. Can we write to the reg_lax_data and read back the written value, or is that not supported? Because perhaps the input and output ports of the la analyser are not talking to each other.. This is what I see on the UART monitor (which we already verified to be working from the 'wait_for_char' portion of the code):
Copy code
~/Efabless/caravel_board/firmware/chipignite/blink$ make monitor
# miniterm.py /dev/serial/by-id/usb-FTDI_Single_RS232-HS-if00-port0
pyserial-miniterm /dev/serial/by-id/usb-FTDI_Single_RS232-HS-if00-port0
--- Miniterm on /dev/serial/by-id/usb-FTDI_Single_RS232-HS-if00-port0  9600,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Hello World !!
Toggled LA bit #123. Read back: 0x00000000
00000380
Blinking LED...
Done. Waiting for next 'a'...
Hello World !!
Toggled LA bit #123. Read back: 0x00000000
08000380
Blinking LED...
Done. Waiting for next 'a'...
Default
Toggled LA bit #123. Read back: 0x00000000
00000380
Blinking LED...
Done. Waiting for next 'a'...
Default
Toggled LA bit #123. Read back: 0x00000000
08000380
Blinking LED...
Done. Waiting for next 'a'...
Default
Toggled LA bit #123. Read back: 0x00000000
00000380
Blinking LED...
Done. Waiting for next 'a'...
Default
Toggled LA bit #123. Read back: 0x00000000
08000380
Blinking LED...
Done. Waiting for next 'a'...
Default
Toggled LA bit #123. Read back: 0x00000000
00000380
Blinking LED...
Done. Waiting for next 'a'...