Introduction - If you have any usage issues, please Google them yourself
Because the FPGA devices currently used are mainly Altera, so the following example takes Altera as an example. The tools are Modelsim + LeonardoSpectrum/FPGACompilerII + Quartus, but the principles and methods are basically applicable to other manufacturers and tools.