Go Down

Topic: Send data from FPGA to Arduino chip (Read 823 times) previous topic - next topic

hannessolo

Dec 24, 2019, 12:46 am Last Edit: Dec 24, 2019, 12:47 am by hannessolo
Hi,

I created a design using quartus and SystemVerilog which I am running on the board's FPGA.

The FPGA does a computation and writes the result to pins D1-11 (the ones defined under // SAM D21 PINS in the template file) as follows:

Code: [Select]

...
counter ct (
  wOSC_CLK,
  bMKR_D[11:1] // this is the output
);
...


I want to check that the FPGA is computing the correct thing by printing the output to the serial console.

But to do this, I must access bMKR_D[11:1] on the ATSAMD21 microprocessor.

Which numbers do I need to put in digitalRead() to get the data that I am writing? I tried digitalRead(1) ... digitalRead(11) but that didn't work.

Am I approaching this the wrong way?

hannessolo

Never mind, I found out.

The digital pins simply correspond to 0 through 14.

It didn't work because of a different error when I tried earlier.

Go Up