hi ! im from vietnam . my english is not good , i hope you can understand what i say . thanks ! i have project to graduate university . my project is draw circle , line , triagle in FPGA , display on VGA ( only use verilog , don't use C) . i have many problems , and time is running out . if you have data , code about it , please help me. .... thanks you so much !
draw lines, circles, squares on FPGA by mouse and display on VGA ( not use NIOS)
Started by ●November 2, 2011
Reply by ●November 2, 20112011-11-02
lexuancong <lexuancong252@gmail.com> wrote:> im from vietnam . my english is not good , i hope you > can understand what i say . thanks !> i have project to graduate university . > my project is draw circle , line , triagle in FPGA , display on VGA > ( only use verilog , don't use C) . i have many problems , and time is > running out . if you have data , code about it , please help me. > ....I don't have any code, but the usual VGA display logic takes a block of memory and writes that out repeatedly. If you don't need color, write the same to all three outputs. Then you have to figure out how to get the shapes drawn into memory. As it doesn't change, easiest is to load it in a a constant (ROM) that you have to somehow generate. You can write a ROM initialization table in any language, then translate that to verilog. But first you need the display logic. You need a high speed clock, a row counter, and column counter. You need to generate the syncronization pulses of the appropriate width and length. That is as close as I can give now. -- glen
Reply by ●November 2, 20112011-11-02
lexuancong wrote:> i have project to graduate university . > my project is draw circle , line , triagle in FPGA , display on VGA > ( only use verilog , don't use C) . i have many problems , and time isThe "video controller" section of Opencores has some VGA controllers source code. http://opencores.org/projects There is a line drawing implementation in VHDL. http://opencores.org/project,graphicsaccelerator (I've never tried these projects, so I don't know how useful they are.) Hope this helps, Jean-Marc -- http://www.cod5.org
Reply by ●November 2, 20112011-11-02
On Wed, 02 Nov 2011 00:25:33 -0700, lexuancong wrote:> hi ! > im from vietnam . my english is not good , i hope you can understand > what i say . thanks ! > i have project to graduate university . my project is draw circle , line > , triagle in FPGA , display on VGA ( only use verilog , don't use C) . i > have many problems , and time is running out . if you have data , code > about it , please help me. .... > thanks you so much !First get your FPGA so that it generates valid VGA sync signals (and a pixel clock, if VGA needs that). Once you've done that, then do some bog- simple thing with your pixel generator, like putting out eight white pixels followed by eight black ones -- that should give you vertical stripes on the screen, to show progress. Then figure out how to read pixels out of memory. Finally, stuff the memory with your circles, lines and squares. Do you have any friends in the class who are similarly bogged down? Helping one another isn't a bad idea. I don't know how your prof is planning on grading things, but if this were a US university, getting partial functionality is going to be better than nothing -- a C isn't as good as an A, but it's a lot better than a D or an F! -- www.wescottdesign.com
Reply by ●November 3, 20112011-11-03
lexuancong wrote:> my project is draw circle , line , triagle in FPGA , display on VGA > ( only use verilog , don't use C) . i have many problems , and time is > running out . if you have data , code about it , please help me.I have implemented a VGA signal generator, line drawing and bit-blitting in VHDL: http://www.frank-buss.de/yagraphcon/index.html You could take a look at it, try to understand how it works (with ModelSim you can even single-step the VHDL code and watching how the registers changes) and then try to implement it yourself in Verilog. For circles there is a modified Bresenham algorithm. Triangles are trivial, if you don't need to fill it. If you need filled polygons, it gets a bit more interesting. -- Frank Buss, http://www.frank-buss.de piano and more: http://www.youtube.com/user/frankbuss
Reply by ●October 16, 20132013-10-16
On Wednesday, 2 November 2011 17:25:33 UTC+10, lexuancong wrote:> hi ! > > im from vietnam . my english is not good , i hope you can understand > > what i say . thanks ! > > i have project to graduate university . > > my project is draw circle , line , triagle in FPGA , display on VGA > > ( only use verilog , don't use C) . i have many problems , and time is > > running out . if you have data , code about it , please help me. > > .... > > thanks you so much !Hi I am in the same situation with the same project. can u please help me
Reply by ●October 16, 20132013-10-16
On 16.10.2013 09:39, ajbhavana89@gmail.com wrote:>> i have project to graduate university . >> my project is draw circle , line , triagle in FPGA , display on VGA >> ( only use verilog , don't use C) . i have many problems , and time is >> running out . if you have data , code about it , please help me.> Hi I am in the same situation with the same project. can u please help meImplement a simple CPU on the FPGA and do the drawing in software.
Reply by ●October 19, 20132013-10-19
W dniu 2013-10-16 13:10, Herbert Kleebauer pisze:> On 16.10.2013 09:39, ajbhavana89@gmail.com wrote: > >>> i have project to graduate university . >>> my project is draw circle , line , triagle in FPGA , display on VGA >>> ( only use verilog , don't use C) . i have many problems , and time is >>> running out . if you have data , code about it , please help me. > >> Hi I am in the same situation with the same project. can u please help me > > Implement a simple CPU on the FPGA and do the drawing > in software. > > >Have fun. Adam
Reply by ●October 19, 20132013-10-19
ajbhavana89@gmail.com wrote:> On Wednesday, 2 November 2011 17:25:33 UTC+10, lexuancong wrote:(snip)>> i have project to graduate university . >> my project is draw circle , line , triagle in FPGA , display on VGA >> ( only use verilog , don't use C) . i have many problems , and time is >> running out . if you have data , code about it , please help me.The usual way to run a VGA display is in raster mode reading from a display RAM. First write the code for that. Then write code to load the appropriate shapes into memory. (First clear it to background color.) That should be a relatively simple state machine, though the easier way is probably to build a simple processor and execute compiled C code. (Or some other language.) -- glen
Reply by ●October 19, 20132013-10-19
On Wednesday, November 2, 2011 2:25:33 AM UTC-5, lexuancong wrote:> hi ! > > im from vietnam . my english is not good , i hope you can understand > > what i say . thanks ! > > i have project to graduate university . > > my project is draw circle , line , triagle in FPGA , display on VGA > > ( only use verilog , don't use C) . i have many problems , and time is > > running out . if you have data , code about it , please help me. > > .... > > thanks you so much !I think you need to turn in code, diagram, all in paper right? If so you can do searchig on net, some folks here are really good help On the basic, you need a cpu, a video frame buffer (sram, sdram, ...) that can hold let say 640 x 480 pixels vga... And your FPGA is the center of this project, you use the fpga to glue all together and to make them to work The cpu somehow needs to take the mouse input to generate pixel data and write it to the buffer On the other hand, the FPGA has to read the data out from the buffer in raster manner and display it on screen anyway, this sounds a big project if you do it all by yourself, unless you already had some support your professor must be the first one to ask...what have he taught you, what hints he can suggest, what evaluation board available etc...





