F
feel_on_on
Guest
Alle kan fortelle meg hvordan å lage en sinusbølge med Verilog? thanx!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
modul sine_cos (clk, reset, no, sinus, cos), inngang clk, reset, no; utgang [07:00] sinus, cos, reg [07:00] sine_r, cos_r; Tilordne sinus = sine_r + { cos_r [7], cos_r [7], cos_r [7], cos_r [07:03]}; tildeler cos = cos_r - {sinus [7], sinus [7], sinus [7], sinus [07:03] }; alltid @ (posedge clk eller negedge reset) begynne hvis begynne sine_r (reset!)
sin (n) = sin (n-1) + a * cos (n-1) cos (n) = cos (n-1) - en * sin (n-1)