Basic Questions about Vivado/Verilog/RedPitaya

Just about everything about Red Pitaya
Post Reply
AstroJimX
Posts: 58
Joined: Wed Jan 13, 2016 12:57 am

Basic Questions about Vivado/Verilog/RedPitaya

Post by AstroJimX » Tue Apr 12, 2016 7:06 pm

Hello,

I wanted to create this post in order to ask questions about using Vivado and Verilog. The end goal is to learn about FPGA programming using the Red Pitaya.

Question:

1. I used the FPGA LED tutorial to get started (done with this). Moving on, from the source code repo. RedPitaya, there is no .xpr file. How do you open a project in Vivado in this case?

2. How could you (if possible) convert a verilog module to a block design?

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic Questions about Vivado/Verilog/RedPitaya

Post by Nils Roos » Wed Apr 13, 2016 9:15 pm

1. There is a tcl-script in the fpga folder for that purpose (red_pitaya_vivado_project.tcl). You can call this script in the Vivado "Tcl Console" and it will generate the project for you from the sources.
Any changes you make to the generated project in the GUI will only be effective inside the Vivado GUI tools, but not in the Makefile-build.

2. You can package Verilog code inside IP blocks and then use these IPs inside a block design. Here's the relevant documentation from Xilinx.

AstroJimX
Posts: 58
Joined: Wed Jan 13, 2016 12:57 am

Re: Basic Questions about Vivado/Verilog/RedPitaya

Post by AstroJimX » Wed Apr 13, 2016 11:03 pm

Thanks for the information. Really appreciated!

marco.mancini
Posts: 3
Joined: Sat Apr 30, 2016 11:26 pm

Re: Basic Questions about Vivado/Verilog/RedPitaya

Post by marco.mancini » Wed Jun 08, 2016 9:51 pm

Hi,
I also tried to generate a project with Vivado 2016.1, but I get the following error:

ERROR: This script was generated using Vivado <2015.4> and is being run in <2016.1> of Vivado. Please run the script in Vivado <2015.4> then open the design in Vivado <2016.1>. Upgrade the design by running "Tools => Report => Report IP Status...", then run write_bd_tcl to create an updated script.
WARNING: [Vivado 12-818] No files matched 'system.bd'
# generate_target all [get_files system.bd]
# read_verilog ./project/redpitaya.srcs/sources_1/bd/system/hdl/system_wrapper.v
ERROR: [Common 17-69] Command failed: File 'C:/Users/marco/Documents/RedPitaya/RedPitaya-master/fpga/project/redpitaya.srcs/sources_1/bd/system/hdl/system_wrapper.v' does not exist


how to fix this?
thank you!

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic Questions about Vivado/Verilog/RedPitaya

Post by Nils Roos » Wed Jun 08, 2016 10:19 pm

Hi.

Well, the first error message basically tells it all. Vivado projects are closely coupled to the specific versions of IP blocks that are used in them. If you use a project in a newer version of Vivado, which ships with a different release of one or more of the IPs, you'll have to migrate the IPs in the project to these newer ones first.

If you don't feel confident to do that, I suggest you install the Vivado version that is recommended for the project (2015.4). The different versions can live happily side by side, provided there's enough room.

marco.mancini
Posts: 3
Joined: Sat Apr 30, 2016 11:26 pm

Re: Basic Questions about Vivado/Verilog/RedPitaya

Post by marco.mancini » Wed Jun 08, 2016 10:27 pm

Thank you Niils,
I'm already downlaoding the 2015.4 version.
Is the Vivado version issue, also related to the " could not find system_wrapper.v" error?
thank you!

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic Questions about Vivado/Verilog/RedPitaya

Post by Nils Roos » Wed Jun 08, 2016 10:48 pm

The system_wrapper.v (and a lot of other stuff) is automatically generated from the tcl scripts. Processing of the scripts did not even start because of the version mismatch, so all the generated components, including system_wrapper.v, are missing.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 103 guests