maikmerten / riscv-tomthumb

A small RISC-V RV32I core written in VHDL, intended as testbed for my personal VHDL learning
MIT License
32 stars 6 forks source link

Altpll #5

Open kkdas088 opened 6 years ago

kkdas088 commented 6 years ago

I am newbie to both VHDL and RISC-V. As wizpll and wizpll_vga is missing the critical altpll component definition, I am not able to synthesize it.

maikmerten commented 6 years ago

Hello kkdas088, in FPGAs, the PLL (which generates the needed clock signals) is a vendor-specific component. For instance, for Altera/Intel FPGAs, a "altpll" needs to be instantiated (the "alt" in "altpll" standing, of course, for Altera).

If you're trying to synthesize for, e.g., a Xilinx device, the synthesizer will not be able to find "altpll". Instead you'll need to create you own code to instantiate properly configured PLLs. This can be done using the configuration options (a "wizard" - which is why "my" PLLs are named "wizpll" and "wizpll_vga") in the respective development environments.

In the basic setup, "wizpll" just generates a 50 MHz clock signal, while "wizpll_vga" generates a 25 MHz clock. Those should be easy to replace with whatever PLL configuration you can generate for you FPGA board.

kkdas088 commented 6 years ago

Thanks for the quick response. I was able to synthesize Tomthumb on Xilinx Virtex FPGA, by using their PLL, as advised by you. Thanks again