Git Product home page Git Product logo

litex_instance's People

Watchers

 avatar

litex_instance's Issues

Litex SoC is synthesized away due to unconnected Signals

Issue

I am failing to reuse the verilog which was generated as litex SoC in my amaranth HDL project. I am able to get it to synthesize, however the Intel Quartus output shows many lines like

object "..." assigned a value but never read

or

Synthesized away node ...

The whole project only consumes 29 LUTs at the end and obviously does not contain the litex SoC.

What is wrong with my setup?
I am currently not able to figure out which of the build output messages contains the hint how to resolve it.

Background

I am working on the project https://github.com/hansfbaier/adat-usb2-audio-interface/ which already consists of the needed gateware to run a USB Audio interface. I would like to include a litex SoC to add some additional control logic, which is too resource-intensive to implement in the gateware.

I feel this unwritten wiki page would be exactly what I need:
https://github.com/enjoy-digital/litex/wiki/Export-Your-Core-SoC-To-Verilog

What I did

  1. Build a plain litex SoC for now: python3 -m litex_boards.targets.qmtech_5cefa2 --build --load according to the documentation
  2. Obtain the build files and place them in my amaranth project: VexRiscv.v, qmtech_5cefa2.v, qmtech_5cefa2_mem.init, qmtech_5cefa2_rom.init, qmtech_5cefa2_sram.init
  3. Write an amaranth module litex_soc.py which creates an Instance() of the litex SoC.
  4. Add this module to my code: https://github.com/fritzbauer/litex_instance/blob/master/instance_example.py#L23

Troubleshooting Resources

  • The build output can be found in this repository's build.log
  • The generated verilog can be found in this repository's build.v
  • The full build folder content has been attached to this issue: build.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.