ModelSim-Altera Starter Edition is a free program that offers you support for simulating small FPGA designs.
The program allows you to create your own designs or choose from a vast library of simulators that you can test for various purposes. The starter edition has a limitation set at 10000 executable lines.
good