Simple NCO to generate a sine, square or sawtooth output. Sine wave is generated from a table and square and sawtooth from the phase accumulator. Note: Output is unsigned 8bit.
Modeselection is done with the uio[1:0]:
Frequency word is 16bit and is given as split into upper and lower part. Lower part is given with by uio[2]='1' and ui[7:0]=word and the upper part by uio[3]='1' and ui[7:0]=word.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Mode Selection Bit 0 | ||
1 | Mode Selection Bit 1 | ||
2 | Frequency Word Lower 8 Bit Update Enable | ||
3 | Frequency Word Upper 8 Bit Update Enable | ||
4 | |||
5 | |||
6 | |||
7 |