Here is the latest version of Geo_ellipse.
Finally, everything is 100% Systemverilog with an authentic fully featured Modelsim testbench.
Good with Quartus 13 & up. Just open the project and do a 'Start Analisys and Synthesis', then run simulation tool 'RTL simulation'. Everything should startup automatically. Or, you can manually add the files to your own Modelsim project.
This testbench has been setup for RTL simulation only.
From within Modelsim, to reset the simulation, quick re-compile and rerun the simulation type/run script:
do ../../ellipse_rerun_rtl.do
The text file 'ellipse_commands_in.txt' contains the simulation drawing coordinates.
The format is as follows:
Filled <0,1>, Quadrant<0,1,2,3>, Xcenter<signed#>, Ycenter<signed#>, Xradius<unsigned#>, Yradius<unsigned#>
The testbench will run as many commands you list in in the .txt file.
After simulation, all the generated ellipse's coordinates will be stored in:
ellipse_generated_results.txt
as well as full logic waveform in the wave display.
Be gentle, this is my first semi-extravagant use of a testbench file & modelsim.
@Nockieboy, I found a few harmless coding issued in the original source 'ellipse_generator.sv' which I patched. You might as well update the main GPU with this new file.
(Update coming in next post. Stand-alone Model-sim project, Don't need to run Quartus, just Modelsim.)