Hello all,
I'm a new member and fairly new to VHDL. I have a question and I was hoping someone can help? I'm trying to write a command decoder for a communication protocol. The decoder reads in the last 5 bits of the data line and outputs the corresponding commands based on the defined bits/constants. The problem I have is with the first Signal : PON (Power On Reset). The requirement is that if the local pon message is already asserted, the pon command (once again written) simply has to clear the local pon message. How do I do that?
Here is what I have:
DECODER: PROCESS (I_HRST, I_DIN)
BEGIN
IF (I_HRST = '0') THEN
I_IEPON <= '0';
O_SRST <= '0';
.
.
.
.
ELSE
CASE I_DIN (4 DOWNTO 0) IS
WHEN IEPON_C =>
I_IEPON <= '1';
WHEN SRST_C =>
O_SRST <= '1';
.
.
.
.
.
WHEN OTHERS =>
NULL;
END CASE;
END IF;
END PROCESS; -- DECODER
Any help will be greatly appreciated.
I'm a new member and fairly new to VHDL. I have a question and I was hoping someone can help? I'm trying to write a command decoder for a communication protocol. The decoder reads in the last 5 bits of the data line and outputs the corresponding commands based on the defined bits/constants. The problem I have is with the first Signal : PON (Power On Reset). The requirement is that if the local pon message is already asserted, the pon command (once again written) simply has to clear the local pon message. How do I do that?
Here is what I have:
DECODER: PROCESS (I_HRST, I_DIN)
BEGIN
IF (I_HRST = '0') THEN
I_IEPON <= '0';
O_SRST <= '0';
.
.
.
.
ELSE
CASE I_DIN (4 DOWNTO 0) IS
WHEN IEPON_C =>
I_IEPON <= '1';
WHEN SRST_C =>
O_SRST <= '1';
.
.
.
.
.
WHEN OTHERS =>
NULL;
END CASE;
END IF;
END PROCESS; -- DECODER
Any help will be greatly appreciated.