Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21263 Discussions

DE1 Cyclone V Verilog

Yassine-Ca
Beginner
1,078 Views

Hello, 

I create a small project using Quartus and Platform Designer.

In Platform Designer, I create NIOS II, On-Chip memory, JTAG UART and FIFO Avalon memory, I intrconnect them then I have generated Verilog , please see image below.

YassineCa_0-1735745050945.png

When I try to compile over Quartus, I get this error : Error (12002): Port "avalonmm_read_slave_read" does not exist in macrofunction "nios2_memory" , I know that it means that there is no signal in this name.

My question is, where are located the generated port signals ( Read from memory, write to memory) from generated by Platfom Designer, I found just clock signal and reset signal.

Please find attached the generated files by Platform Designer.

Thank you

Labels (1)
0 Kudos
17 Replies
sstrell
Honored Contributor III
987 Views

The _inst.v file is just an instantiation template for instantiated the PD system in an upper-level design file in Quartus.  It only lists the exported interfaces, which in your case are just clock and reset.

If you are using this system as your top-level design in your Quartus project, set the top-level entity name in Quartus to NIOS2_memory_JTAG and add the .qsys file to your project.  Regenerate the system in PD and then recompile in Quartus.

0 Kudos
Yassine-Ca
Beginner
986 Views

Hi,

 

              Thank you for your reply.

 

              I use another file as my top-level, and i declare the NIOS2_memory_JTAG inside it.

 

              Because I have the addresses of FIFO in, out and csr, on chip , nios2 debug memory slave, Can I just use these with bus address to write data to the FIFO memory.

 

              Regards.

0 Kudos
sstrell
Honored Contributor III
982 Views

You mean in your code for the processor?  Sure.  But you can find all the macros in the generated system.h file from PD.

Side note: I don't know what version of Quartus you are using, but it's not recommended to start new designs with Nios II since it's been obsoleted by Nios V.

0 Kudos
Yassine-Ca
Beginner
979 Views

Hi,

 

                My FPGA is DE1 and the quartus prime version 23.1 std.

 

                 My top-level file is used to display retreived data from FIFO memory into 7-segments.

 

                  I serached for the system.h file but not found in project folders, where can I find it, as i mentioned the NIOS2 files was generated by Platform Designer Qsys.

 

                  Is the DE1 supports Nios V, if Yes I can start a new design.

 

                  Regards.

0 Kudos
sstrell
Honored Contributor III
968 Views

Sorry, I forgot you have to generate the BSP (board support package) first to create the system.h file.

Nios V is supported in all devices that supported Nios II (as long as you have device resources available to implement it of course).

0 Kudos
Yassine-Ca
Beginner
943 Views

Hi,

 

            In the BSP file just for Clk and reset.

 

            I'm searching now macros for intel in this link, is This can help?

 

             https://www.intel.com/content/www/us/en/docs/programmable/782047/23-2/parameterizable-macros-for-fpgas-release.html

 

             Regards.

0 Kudos
sstrell
Honored Contributor III
920 Views
0 Kudos
Yassine-Ca
Beginner
867 Views

Hi,

 

              Sorry It was a mistake sending that reply in this page.

 

              From Quartus I try to open NIOS 2 software build tool to generate BSP but no way.

 

              What do you suggest, is the quartus version standard is not working for this?.

 

              Best regards.

 

 

0 Kudos
sstrell
Honored Contributor III
861 Views

For Nios II in older versions of Quartus, you have to use the bsp-editor from the Nios command shell to configure and generate the BSP.

https://learning.intel.com/Developer/learn/courses/835/the-niosr-ii-processor-introduction-to-developing-software

0 Kudos
Yassine-Ca
Beginner
859 Views

Hi,

 

              Have you the link to download the version?.

 

               Regards.

0 Kudos
Yassine-Ca
Beginner
845 Views

Hi,

 

                  I installed eclipse, now it's OK.

 

                  I will procced to BSP files.

 

                  Regards.

0 Kudos
RichardTanSY_Intel
806 Views

I believe sstrell has answered your inquiry.

Do you need further help regarding this case?

 

Regards,

Richard Tan

 

0 Kudos
Yassine-Ca
Beginner
763 Views

Hi Richard,

 

                      Thank you for your support.

 

                        I'm using Quartus 23.1, I have issue with Eclipse for NIOS II with elf file not existing.

 

                         I browse the Nios II Handbook, I found that the latest version of Quartus is 21.3

 

                         Can I get a problem of incompatibility.

 

                          Regards.

0 Kudos
Yassine-Ca
Beginner
684 Views

Hi,

 

              In the NIOS II new book, there is compatibility.

 

              The problem was in the template in Eclipse, when I changed it to Helloworld small, the ELF file is generated.

 

                I got these warnings on the Quartus:

Warning (10036): Verilog HDL or VHDL warning at seven_segment_display.v(18): object "display_data" assigned a value but never read
Info (12128): Elaborating entity "seven_segment_decoder" for hierarchy "seven_segment_decoder:temp_tens_decoder"
Warning (10036):............................

 

                 To share the solution with you: I just added the module that declare the system components (NIOS 2+On Chip Memory + FIFO + JTAG)  in the top level module declaration with the qip file added to the project.

 

Here the declaration inside top level,according to my project :

temp_hum u_rdwr (
.clk_clk(clk),
);

 

                                Regards.

 

Yassine

0 Kudos
RichardTanSY_Intel
621 Views

I believe your follow-up question is related to Nios II, which unfortunately is not within my area of expertise.

Could you please raise a separate case for your follow-up technical problem, and an agent will be assigned to your case?

At Altera, we prefer a new case for each unique technical problem, as it aids our case analysis and helps us assess our customer support requirements.

Thank you for your understanding.

 

Now, I will transitioning this thread to community support. If you have any further questions or concerns, please don't hesitate to reach out. Please login to https://supporttickets.intel.com , view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support.

The community users will be able to help you on your follow-up questions.

 

Regards,

Richard Tan

 

 

0 Kudos
Yassine-Ca
Beginner
614 Views

Hello,

 

                   The link is not working.

 

                    Regards.

0 Kudos
RichardTanSY_Intel
596 Views

I have fixed the link.


Regards,

Richard Tan


0 Kudos
Reply