Forum Discussion
matif
Occasional Contributor
7 years agoCode output on putty not correct?
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "C:\altera\15.1\embedde...
YoshiakiS_Altera
Occasional Contributor
7 years agoHi,
I tried to find good example about FIFO. But, I was unable to find one.
Here is an example driver code for the following IP which has FIFO for TX and RX data.
15. Intel FPGA Avalon I2C(Master) Core
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_embedded_ip.pdf#page=164
i2c-axxia.c driver.
https://github.com/altera-opensource/linux-socfpga/blob/master/drivers/i2c/busses/i2c-altera.c
I hope it helps.