It's not wrong, but opposite to the number representation of existing numerical VHDL libraries. If you cast it to unsigned(3 downto 0), the integer value is 8.So why should it be wrong that len1(0 to 3)<="1000" represents the integer number 8?
to_integer(unsigned(len1))
Followed by 384-1-len1mod512 of what?Append the bit 1 to the end of the message M followed by 384-1-len1mod512
message2(0 to 7) <= message1;
message2(8) <= '1';
message2(9 to 383) <= (others => '0');
message2(508 to 511) <= len1;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?