Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity ConcatStrings is
Port (
result_out : out STRING(1 to 10)
);
end ConcatStrings;
architecture Behavioral of ConcatStrings is
signal str1 : STRING(1 to 5) := "HELLO";
signal str2 : STRING(1 to 5) := "WORLD";
signal result : STRING(1 to 10);
begin
process(str1, str2)
begin
result <= str1 & str2;
end process;
result_out <= result;
end Behavioral;Coding works best on desktop or with an external keyboard.