shaiko
Advanced Member level 5
Hello,
I need to implement 2 types of uarts. One with a parity error generator and another without.
The obvious way to do that is to create 2 different .VHD files with a different entity and architecture in each one.
But I want to implement them in the same .VHD file and have the synthesis tool decide wich one to implement based on some parameters in the file?
Is there a way to do that with the "if generate" statement?
I need to implement 2 types of uarts. One with a parity error generator and another without.
The obvious way to do that is to create 2 different .VHD files with a different entity and architecture in each one.
But I want to implement them in the same .VHD file and have the synthesis tool decide wich one to implement based on some parameters in the file?
Is there a way to do that with the "if generate" statement?