Skip to content

feat: integrate LiteX SoC #2

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ericlin1231
Copy link
Member

Installing LiteX and Testing VexRiscv SoC

Before installing the LiteX framework, you should enter a Python virtual environment to prevent potential package conflicts when installing LiteX dependencies. The make cpu command will check whether LiteX is installed.

Adding Commands to Makefile for VexRiscv SoC Testing

Two commands added to the Makefile to test the VexRiscv SoC

  • make cpu:
    This command checks if the LiteX toolchain is installed, then synthesizes the SoC and flashes the SoC design to the board. For SoC settings, please refer to: CPU.mk#L1-L6

  • make cpu-test:
    This command compiles the code in cpu/bare-program to test the CPU. It prints messages via UART. The litex_term tool requires specifying the host port. The default port setting in the Makefile is /dev/ttyUSB0. To specify the port connected to your development board, run the command. litex_term used to load the binary program to the board and monitor the messages from UART.

    PORT=YOURPORT make cpu-test

@ericlin1231 ericlin1231 requested a review from alanjian85 March 22, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant