- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 advanceLink Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page