UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
846 Views
Registered: ‎03-22-2018

[Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi

My question is very straightforward: i'm trying to connect the Video Out output of the project of this chapter to the VGA Output in a way that I can view the video pattern in my monitor. How can I do it?

I though I just needed to add some constraint. I tryied something, but it didn't gone right, I think i'm connecting them the wrong way. My constraints file is attached to this topic. When I try to generate the bitstream with it, I get the following error:

error_1.PNGerror_2.PNG

 

 

 

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
558 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

HI @tiago0297,

You literally have to write one line of code just to have the data = 0 during blanking period


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
19 Replies
Adventurer
Adventurer
842 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Well, for some reason I can't attach my constraints file. Here goes it's content:

 

set_property PACKAGE_PIN Y9 [get_ports clk_in]
set_property PACKAGE_PIN AA19 [get_ports vid_hsync]
set_property PACKAGE_PIN Y19 [get_ports vid_vsync]
set_property PACKAGE_PIN AA21 [get_ports {vid_data[19]}]
set_property PACKAGE_PIN AB21 [get_ports {vid_data[18]}]
set_property PACKAGE_PIN AA22 [get_ports {vid_data[17]}]
set_property PACKAGE_PIN AB22 [get_ports {vid_data[16]}]
set_property PACKAGE_PIN AB19 [get_ports {vid_data[11]}]
set_property PACKAGE_PIN AB20 [get_ports {vid_data[10]}]
set_property PACKAGE_PIN Y20 [get_ports {vid_data[9]}]
set_property PACKAGE_PIN Y21 [get_ports {vid_data[8]}]
set_property PACKAGE_PIN V18 [get_ports {vid_data[3]}]
set_property PACKAGE_PIN V19 [get_ports {vid_data[2]}]
set_property PACKAGE_PIN U20 [get_ports {vid_data[1]}]
set_property PACKAGE_PIN V20 [get_ports {vid_data[0]}]

set_property IOSTANDARD LVCMOS33 [get_ports -of_objects [get_iobanks 33]];

set_property IOSTANDARD LVCMOS33 [get_ports -of_objects [get_iobanks 13]];

0 Kudos
Scholar watari
Scholar
816 Views
Registered: ‎06-16-2013

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @tiago0297

 

How do you connect to your monitor ? Analog RGB (VGA) ? DVI ? HDMI ? DisplayPort ? or other ?

Also what kind of board do you use ? 

 

Best regards,

0 Kudos
Adventurer
Adventurer
810 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi, @watari

I use a VGA and a ZedBoard

0 Kudos
Moderator
Moderator
806 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

HI @tiago0297,

Tip: The Video Beginner Series 1: Introduction to Digital Video might be a good start for this ;)


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
800 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi, @florentw

I actually used the first chapter to try to modify the sixth. What I did was to use the same constraint file, but renaming the red, blue and green signals to the vid_data[0...3] (red), vid_data[8...11] (blue) and vid_data[16...19] (green). But some bis and signals remain missing and I'm getting this error. I'm trying to figure out what I did wrong, but I'm not being so successfull at it :/

0 Kudos
Moderator
Moderator
772 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @tiago0297,

TIP2: Check your error message. What ports is this message talking about? Did you create any specific constraint to these ports? (ex. vid_data[4])

TIP3: Each port on the top level wrapper which is an input/output needs to be assigned to a pin

Regards,

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
765 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @florentw, thanks for the tips, but I still didn't get it.

I took a look in the ZedBoard datasheet and verified that works with 12 bit color. That explains to me why in the first project half of each channel, red, green and blue are not assigned to any pin. I think my main question is how I organize this vid_data bits, since they are 24, and the other signals if there is no pinout for them. Why in the first project Vivado gave no error on some bits unconnected?

0 Kudos
Moderator
Moderator
741 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

HI @tiago0297,

In the Video Series 1, all the input/ouptuts from the vivado design are assigned to a pin of the device.

You need to modify the wrapper to unconnect the port from the top level module or create a new wrapper on top of the wrapper


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
701 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi, @florentw

I tryied to modify my wrapper using the first tutorial as reference. Now, the bitstream was succesfully generated, but no image from the TPG was shown in my screen. I think I've done something wrong on my wrapper or my constraints. Never modified the wrapper before, so I don't know if I did something wrong. Can you take a look at what i've done?

My new constraints file:

set_property PACKAGE_PIN Y9 [get_ports aclk_40MHz]
set_property PACKAGE_PIN AA19 [get_ports vid_hsync]
set_property PACKAGE_PIN Y19 [get_ports vid_vsync]
set_property PACKAGE_PIN AA21 [get_ports {vid_data[11]}]
set_property PACKAGE_PIN AB21 [get_ports {vid_data[10]}]
set_property PACKAGE_PIN AA22 [get_ports {vid_data[9]}]
set_property PACKAGE_PIN AB22 [get_ports {vid_data[8]}]
set_property PACKAGE_PIN AB19 [get_ports {vid_data[7]}]
set_property PACKAGE_PIN AB20 [get_ports {vid_data[6]}]
set_property PACKAGE_PIN Y20 [get_ports {vid_data[5]}]
set_property PACKAGE_PIN Y21 [get_ports {vid_data[4]}]
set_property PACKAGE_PIN V18 [get_ports {vid_data[3]}]
set_property PACKAGE_PIN V19 [get_ports {vid_data[2]}]
set_property PACKAGE_PIN U20 [get_ports {vid_data[1]}]
set_property PACKAGE_PIN V20 [get_ports {vid_data[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports -of_objects [get_iobanks 33]];
set_property IOSTANDARD LVCMOS33 [get_ports -of_objects [get_iobanks 13]];

My wrapper:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
library UNISIM;
use UNISIM.VCOMPONENTS.ALL;
entity AXI4S_to_Vid_Out_bd_wrapper is
port (
aclk_40MHz : in STD_LOGIC;
aresetn_0 : in STD_LOGIC;
vid_data : out STD_LOGIC_VECTOR ( 11 downto 0 );
vid_hsync : out STD_LOGIC;
vid_vsync : out STD_LOGIC
);
end AXI4S_to_Vid_Out_bd_wrapper;

architecture STRUCTURE of AXI4S_to_Vid_Out_bd_wrapper is

signal data : std_logic_vector(23 downto 0);

component AXI4S_to_Vid_Out_bd is
port (
aclk_40MHz : in STD_LOGIC;
vid_active_video : out STD_LOGIC;
vid_data : out STD_LOGIC_VECTOR ( 23 downto 0 );
vid_hblank : out STD_LOGIC;
vid_hsync : out STD_LOGIC;
vid_vblank : out STD_LOGIC;
vid_vsync : out STD_LOGIC
);
end component AXI4S_to_Vid_Out_bd;
begin
AXI4S_to_Vid_Out_bd_i: component AXI4S_to_Vid_Out_bd
port map (
aclk_40MHz => aclk_40MHz,
vid_data(23 downto 0) => data(23 downto 0),
vid_hsync => vid_hsync,
vid_vsync => vid_vsync
);

vid_data <= data(11 downto 0);

end STRUCTURE;

 

 

0 Kudos
Moderator
Moderator
702 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

HI @tiago0297,

Good to know that the bitstream is now generating.

To be fair, I was kind of expecting that you would get no output ;).

I think I know the root cause but I want you to find it by yourself. Run a simulation and check the (data) output signals of both design. You should see a subtle difference ;)

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
691 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi, @florentw

I just runned both simulations, but I didn't found the difference. 

Both the data signals looks the same for me. In the project 1, if you look at RGB data together, it makes a sequence of ffff00, ff00ff, 0000ff, or something like it. The same happens in project 6 when I look at the vid_data signal, sequences very much like that.

Can you explain to me?

0 Kudos
Moderator
Moderator
684 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @tiago0297,

Did you check the value of the data between 2 frames or 2 lines?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
667 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @florentw

When vsync_out raises, the values in the data differs between projects 1 and 6. In 1 they are all 000000, but in 6 they are 00ffffff. Is it what I'm supposed to observe? I didn't understood what's happening :/

Sorry for extending a lot this topic. I'm really in a hurry to complete this task for a university project, so I need a lot to make it work so I can proceed to the next steps.

0 Kudos
Moderator
Moderator
659 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @tiago0297,

Yes this is what you are supposed to observe. So know you have an idea of what you need to do in 6


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
648 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi, @florentw

I'm glad that i'm in the right direction. But I didn't understood why i'm getting this result and why it affects my output. What do I need to do to fix it?

0 Kudos
Moderator
Moderator
600 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Hi @tiago0297,

Well... You need to do some investigation and design by yourself...

You know what's failing. Why? It is just the VGA spec.

You need to find a solution. I will not do the design for you. 

Regards 

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Adventurer
Adventurer
579 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Thanks for the answer. Didn't expected you to do the design. Just a little more help from a instructor to a beginner ;) Don't know the use of knowing where the problem is if after a weekend researching I still have no clue on how to solve it.

0 Kudos
Moderator
Moderator
559 Views
Registered: ‎11-09-2015

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

HI @tiago0297,

You literally have to write one line of code just to have the data = 0 during blanking period


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
Adventurer
Adventurer
545 Views
Registered: ‎03-22-2018

Re: [Video Beginner Series 6] How to conect the Video Out to VGA

Jump to solution

Thanks. I'm glad it's a simple solution. I was thinking I needed to change something on the design itself, but didn't found out where. I guess it worked.

0 Kudos