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

Error when building software for FPGA #7

Open
laf0rge opened this issue Jul 3, 2021 · 3 comments
Open

Error when building software for FPGA #7

laf0rge opened this issue Jul 3, 2021 · 3 comments

Comments

@laf0rge
Copy link

laf0rge commented Jul 3, 2021

From ov_ftdi created by ar0mat: openvizsla#25

Hello everyone.

I have been trying to build "firmware" for an FPGA and I'm receiving such error

Traceback (most recent call last):
  File "build.py", line 28, in <module>
    top = OV3(plat)
  File "/home/user/projects/ov_ftdi/software/fpga/ov3/ovhw/top.py", line 114, in __init__
    ftdi_io)
  File "/home/aromat/projects/3mdeb/openvizsla_new/ov_ftdi/software/fpga/ov3/ovhw/ftdi_bus.py", line 136, in __init__
    self.specials += MultiReg(~io.wr_n, self.tx_ind)
NameError: name 'MultiReg' is not defined
Makefile:18: recipe for target 'build/ov3.bit' failed
make: *** [build/ov3.bit] Error 1

When I used this soft 4 months ago, I didn't have errors like this.

Any ideas how to solve it?

@laf0rge
Copy link
Author

laf0rge commented Jul 3, 2021

@artur-rs it would be great if you can provide PR that fix the problem :)

@laf0rge
Copy link
Author

laf0rge commented Jul 3, 2021

I have found that software/fpga/ov3/ovhw/ftdi_bus.py file is missing crucial import line:

from migen.genlib.cdc import MultiReg

Simply add above line in the mentioned file and it should work as expected.

@desowin
Copy link

desowin commented Jan 25, 2023

Fixed in commit 338ba8f

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

No branches or pull requests

2 participants