Sunday, March 31, 2019

Fast Serial FTDI CYC1000 FPGA board

Finally have a simple demo using 50Mhz receive working between the FTDI and Cyclone 10LP (CYC1000 FPGA board)

The goal of this project is to have USB serial working at 50Mhz (TX/RX) and have simple protocol to abstract SPI, PWM decode/encode, OneShot peripherals.

The simple demo shows the RX character value on the LEDs.

Steps:
  1. git clone  https://github.com/tcmichals/cyc1000.git
  2. start Quartus
  3. open the fast_serial_test project
  4. compile and load
  5. start minicom --device /dev/ttyUSB0 
  6. edit the serial port to remove hardware hardware handshaking.  It does not matter what the baud rate is.  Just start typing and the LEDs will change values to the RX chacaters.  The easiest is to use '0', '1' '0' is 0x30 then 1 is 0x31, so only one LED changes.

Also, must change the EEPROM of the FPGA to use opt serial.   For this to work.

More to come.  Next is TX. 


1 comment:

  1. Made several improvements.
    - Fixed encoding the serial RX stream, bits were reversed
    - Added a 7 Segment project ( helps understand verilog case statements

    Working on new Python script for simple loop back

    ReplyDelete