Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECP5 migration #11

Merged
merged 19 commits into from
Dec 15, 2021
Merged

ECP5 migration #11

merged 19 commits into from
Dec 15, 2021

Conversation

PhileasL
Copy link
Member

Purpose of this PR

Simple: Not enough logic element in our test FPGA (1k for our ICE40 HX1K). The ECP5 we bought have 24k logic element which is enough for our needs.

Board used

We are currently using the colorlight i5 that got the best ratio price/performance (50€ for 24k LUTs and a development board is incredibly cheap !).

From unboxing to blink

Pretty straight forward following this amazing tutorial.

What has been change for code migration ?

Here's what matter for this PR, changes that occur in the code base.

Makefile

  • make will synthesis the verilog
  • make flash will flash the volatile memory
  • make prog will program the onboard SPI memory

inout

Inout wire are tedious to manage. Luckily, there is a primitive that well manage it: TRELLIS_IO
Then, we just have to register data retrieved + buffer the last data received.

PLL

As the external clock on this board is 25MHz and our system is 96MHz, 2 PLL are used, one to transform 25 to 100MHz, and another to turns 100 to 96MHz and 12MHz.

Bugfix

Just a little bugfix over serial_transmitter that was resetting pulse_identifier before buffering data to send.

@PhileasL PhileasL added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 15, 2021
@PhileasL PhileasL self-assigned this Dec 15, 2021
Copy link
Member Author

@PhileasL PhileasL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:
Next steps:

  • Architecture refactoring
  • ...

@PhileasL PhileasL merged commit efb842a into master Dec 15, 2021
@PhileasL PhileasL deleted the PhileasL/ECP5_migration branch December 15, 2021 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant