Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- I have set in the parameters in the NCO megafunction as per my requirements. After that I have Generated the HDL and then designed the schematic(attached). --- Quote End --- You don't need schematic, use hdl design --- Quote Start --- 1. The output of the NCO is a 16 bit output. So I would have to give this output to a DAC to generate the analog sinewave form. As far as i have understood this NCO output is parallel. Would I need a parallel to serial converter, if so how do I implement it? 2. After the Analysis and Synthesis, in the Pin planner how do I make the pin assignments for these 16 pin outputs ? The 16 bit DAC provided in the development kit has a serial input (DAC_DIN) is what I have gathered from the data sheet. --- Quote End --- if DAC input is single bit then you need to serialise the 16 bits to one, DAC clock should be 16 times faster than NCO and you must provide word boundary --- Quote Start --- 3. Since I was unable to figure this out, I tried to simulate the NCO in modelsim and i have been getting errors(2 of them attached others are similar). Would I have to write some verilog code for simulation (I have assumed that the Generate HDL does it all so I have only written the SDC file with create clock and derive pll clock) or for the nco algorithm? What am I missing here? 4. Is there any other way other than Modelsim to simulate and check whether my design is working. --- Quote End --- modelsim compiles hdl desings