Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

NCO Compiler problem :(

Hi All,

I am trying to generate a sine wave using nco compiler, I am using simulink for the megacore library, when I use it, in matlab promt it say that unable to locate megacore nco 2.2.2

well anyways Then i have three inputs

clkken

phase_inc

reset

output i have

sine

cosine

data ready

So I just have to plug in the 32 bit array to the phase in and

attach a scope to see the output of it right? Am i missing something here ? I just see a straight in my scope

Kindly Help me

Regards

DspBoard

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi DSPBoard,

    If I remember NCO correctly... you will have to enable clken, pass a constant value to the phi input (the phi value can be found in the megawizard, after you set all the dithering...etc.) and lastly reset the core. If you do all three, then you should be able to see sine and cosine waves coming out of the core.

    Good luck!