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

Radiant setup fails to build with Radiant 2.2.1.239.2 #145

Closed
turbinenreiter opened this issue Sep 7, 2021 · 11 comments
Closed

Radiant setup fails to build with Radiant 2.2.1.239.2 #145

turbinenreiter opened this issue Sep 7, 2021 · 11 comments

Comments

@turbinenreiter
Copy link

Describe the bug

Building the project fails at the last step ("Export Files"), all prior steps work.

The build output:

************************************************************
**  Gate-Level Simulation File                            **
************************************************************

backanno "neorv32_upduino_v3_impl_1.udb"  -o "neorv32_upduino_v3_impl_1_vo.vo"      -sp "High-Performance_1.2V"  -w -neg
backanno: version Radiant Software (64-bit) 2.2.1.239.2

Loading neorv32_upduino_v3_impl_1.udb ...
Loading device for application GENERIC from file 'itpa08.nph' in environment: /home/plam/lscc/radiant/2.2/ispfpga.
Package Status:                     Preliminary    Version 1.5.
Performance Hardware Data Status:   Advanced       Version 1.0.

Design:  neorv32_upduino_v3_top
Family:  iCE40UP
Device:  iCE40UP5K
Package: SG48
Performance Grade:   High-Performance_1.2V
WARNING - Unable to find the instance/port 'flash_sdi_i' in the constraint 'ldc_set_location -site {17} [get_ports flash_sdi_i]'

WARNING - In the constraint 'ldc_set_location -site {17} [get_ports flash_sdi_i]', the locate object is not specified

Writing a verilog netlist based on the neorv32_upduino_v3_impl_1 design file.

Writing Verilog netlist to file neorv32_upduino_v3_impl_1_vo.vo
Writing SDF timing to file neorv32_upduino_v3_impl_1_vo.sdf
malloc_consolidate(): unaligned fastbin chunk detected
Done: error code -1

To Reproduce

Follow the build instructions described here: https://github.com/stnolting/neorv32/tree/master/setups/radiant/UPduino_v3
while using Radiant 2.2.1.239.2

Expected behavior

I expected the build to succeed and create output files

Screenshots

image

Environment:

  • Fedora 34
  • Radiant 2.2.1.239.2

Hardware:

  • UPduino 3.0

Additional context

@turbinenreiter
Copy link
Author

I just realized that this error message looks more like one of the tools within Radiant is broken, and given the fact that I run it on Fedora 34 instead of Ubuntu 16.04(!), which is Radiants supported Linux distro, I guess the issue is not to be found in this project. I got the osflow toolchain working in the meantime. I think this can be closed.

@stnolting
Copy link
Owner

Hey there!

I do not have Radiant version 2.2 so I cannot reproduce your setup.
The default Radiant setup from setups/radiant works with Radiant 2.1 and I just tested it using the latest Radiant 3.0 version - successfully.

Seems like your design has some timing errors (5). Have you been prompted to execute the last step (export) even though there are timing errors? Maybe this crashed something., because the physical constraint warning for the flash_sdi_i does not really make sense here... 🤔

If you do not want to update to Radiant 3.0, you could try the more sophisticated Sinplify Pro synthesis engine instead of the default Lattice Synthesis Engine (LSE). From my experience Sinplify Pro provides faster (but larger) design results. Maybe this could eliminate the timing error issue.

To switch to Sinplify Pro:

  • in the file list on the right right click on the implementation (imp_1 (Lattice LSE)
  • in the drop-down menu select "properties"
  • in the project properties click on "Lattice LSE" in the "Synthesis Tool: Lattice LSE" line
  • select Sinplify Pro in the drop-down menu and close the dialog
  • rerun everything by clicking on "Run All" (green arrow)

@stnolting
Copy link
Owner

I just realized that this error message looks more like one of the tools within Radiant is broken, and given the fact that I run it on Fedora 34 instead of Ubuntu 16.04(!), which is Radiants supported Linux distro, I guess the issue is not to be found in this project. I got the osflow toolchain working in the meantime. I think this can be closed.

Good point!

However, I suggest to try Sinplify before updating Radiant or any OS-related thing. 😉

@turbinenreiter
Copy link
Author

I tried Sinplify and also got the same error message. I think the issue is incompatibility between my host OS and Radiant. Thanks for the help!

@umarcor
Copy link
Collaborator

umarcor commented Sep 7, 2021

@turbinenreiter I suggest checking whether package redhat-lsb is installed. Some years ago, that was required for running some vendor tools on Fedora.

@turbinenreiter
Copy link
Author

redhat-lsb

I installed it, same issue.

@stnolting
Copy link
Owner

I think there is an issue in rtl/processor_templates/neorv32_ProcessorTop_UP5KDemo.vhd, which is currently used by the Radiant example setup: the flash_sdi_i signal is defined in the entity but not actually used in the design. This should not be a problem for Radiant, but maybe this is the cause of your export problem. I will fix that.

@stnolting
Copy link
Owner

Should be fixed now (fingers crossed) 😉

@stnolting stnolting added the bug Something isn't working label Sep 8, 2021
@turbinenreiter
Copy link
Author

malloc_consolidate(): unaligned fastbin chunk detected

Still same issue. I will try this on a Radiant-support OS later to confirm that this is an OS issue rather than an neorv32 issue :D

@stnolting stnolting removed the bug Something isn't working label Sep 19, 2021
@stnolting
Copy link
Owner

Is this still up-to-date or can this be closed? 🤔

@turbinenreiter
Copy link
Author

Can be closed, it worked on other OS, so the problem is on my (unsupported) OS.

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

3 participants