P
Pleg
Guest
Let's say I've a proto board with a button; I don't know now if the wire
connected to the button has a value of 1 when the button is high or when
it's low, but I don't care: I'm using an enumerated type inside my VHDL
code: "type button_state is (high, low);". But now I want to map that states
"high", "low" to real "1", "0" so that I can use that button, linking it to
my signals in the .ucf file.
How do I do it? How can I map my enumerated type to binary 1,0s?
Thanks,
Pleg
connected to the button has a value of 1 when the button is high or when
it's low, but I don't care: I'm using an enumerated type inside my VHDL
code: "type button_state is (high, low);". But now I want to map that states
"high", "low" to real "1", "0" so that I can use that button, linking it to
my signals in the .ucf file.
How do I do it? How can I map my enumerated type to binary 1,0s?
Thanks,
Pleg