This design example uses the NCO block from the Waveform Synthesis library to implement an NCO. A Simulink double precision sine or cosine wave compares the results.
The top-level testbench includes Control, Signals, Run ModelSim, and Run Quartus Prime blocks, plus ChanView blocks that deserialize the output buses. An Edit Params block allows easy access to the setup variables in the setup_demo_nco.m script.
The NCOSubSystem subsystem includes the Device and NCO blocks.
The model file is demo_nco.mdl.