Fatherc0stas
Newbie level 6
- Joined
- Nov 26, 2012
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,369
Hello everyone, I am currently in the middle of a VHDL project in my university and iw anted to ask a few questions on some ideas i have in ways to improve my design. The design is a generic type of decoder (in this case, 7/4 and 15/11 are included in the errorcorrection parts fo the program)
The program i have looks like this(and it works fine in both functions, 7/4 and 15/11):
My question is: Is there a way to be able to change the generic values from a pin assigned in my entity section? i intend to use the pin named "func" for that purpose. for example, when "func" is 1 then IPbits = 7 and OPbits = 4 and when "func" =0 then IPbits = 15 and OP bits = 11.
I am wondering if its possible to achieve this sort of function from within vhdl.
Thanks alot for your time
The program i have looks like this(and it works fine in both functions, 7/4 and 15/11):
My question is: Is there a way to be able to change the generic values from a pin assigned in my entity section? i intend to use the pin named "func" for that purpose. for example, when "func" is 1 then IPbits = 7 and OPbits = 4 and when "func" =0 then IPbits = 15 and OP bits = 11.
I am wondering if its possible to achieve this sort of function from within vhdl.
Thanks alot for your time