Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

Help testbench VGA connector

Altera_Forum
Honored Contributor II
1,795 Views

Hi gurus,  

I am working on an assignment to design a VGA connector that will change colors Red, blue and green by the use of three push buttons. I am stuck on the testbench wondering what to write to produce the results shown in the picture below: 

 

https://www.alteraforum.com/forum/attachment.php?attachmentid=8556  

 

can anyone help on this, valuable hints. I am still very new with vhdl 

 

Thanks in advance
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
664 Views

Do you have a testbench? If not Quartus can automatically write a testbench for you. Just go process/start/start tesbench writer and you will get a template for your testbench. then you have to add the .vht file under simulation under settings. And then open the .vht file and in the section with the comment -- code execute only once. You have to write the input to simulate. In your case you want to simulate buttons being pressed. You have to assign the buttons a value in your case 110. Just write KEY <= "110"; (the same as you would in your VHDL code). Don't forget to assign the clock and reset a value then you just run the simulation. 

 

I hope you understand what i mean :)
0 Kudos
Altera_Forum
Honored Contributor II
664 Views

Hi Fredda11, Thank you for your reply. I had already generated a testbench from quartus. It was just to get the simulation to work as i want. I am going to try your tips.

0 Kudos
Reply