Open davidlawson opened 9 years ago
You can have a constant in your HDL that is then your to generate a different configuration based on the board.
First declare a logi variant type and then the board variant for a specific board :
type logi_variant_type is (V1_1, V1_5);
constant board_variant : logi_variant_type := V1_1;
then when doing the board specific assignment :
gen__v1_1 : if board_variant = V1_1 generate
-- board specific code
end generate ;
we could have the board type in a package file somewhere in logi-hard.
logi_edu_demo.vhd needs to contain the following modified PMOD signals for the R1.1 board for things to work properly. I'm not sure how to create a VHDL file with some sort of constant that switches things for different boards...