FPGA 18 - AMD Xilinx Verilog CORDIC Sine/Cosine generator
ฝัง
- เผยแพร่เมื่อ 2 ก.ค. 2023
- A hands-on tutorial on sine/cosine waveform generation using CORDIC algorithm IP through AMD Xilinx Vivado Verilog design flow.
#fpga #vivado #verilog #xilinx #amd #simulation #trigonometry #dsp
搖旗倒讃 高歌離席
超爛
This is really awesome
I would change the respective part of the code to this:
begin
phase_tvalid
Thank you very much for the video. However, this error occures when I run simulate :( Do you happen to know what to do?
[USF-XSim-62] 'compile' step failed with error(s). Please check the Tcl console output or 'C:/xup/Individual project/sincos/sincos.sim/sim_1/behav/xsim/xvlog.log' file for more information.
[Vivado 12-4473] Detected error while running simulation. Please correct the issue and retry this operation.
Pay attention to what the error messages tell you and follow them closely. It's complaining about failure during the 'compile' step. You can follow the log file and see where the error is. The console outputs in the lower right window of Vivado also display these error logs. Most likely you have a typo error somewhere in your code and the error log would tell you exactly at which line in your code it sees the error.
@@FPGARevolutionthank you very much for feedback! as a beginner of the FPGA, this kind of video helps A LOT. I really love it
Hi want to generate frequencies kin khz so is there any formula for input clk and phase increment
The phase resolution is fixed in this IP and the total number of steps is 2*PI or 51,472. The equation for synthesizing the exact frequency is Fout = (phase_jump * sampling_frequency) / 51,472 so plug in your required Fout and tune the two parameters in the numerator accordingly.
@@FPGARevolution thanks
COS AND SIN ARE NOT ABLE TO LOAD THE VALUE
If you follow closely and the simulation does not report any specific error, you should be able to reproduce the exact results as demonstrated.
I had same observation, double checked my code and found I had not supplied clk from top module to cordic instance correctly
on giving "clk" variable on both places, was able to observe the sinusoidal waveforms
What is +pi in here
It's the positive version of pi.
@@FPGARevolution thanks