D
Daniel
Guest
Hi all!
I can't find the correct syntax when I use the "carriage return" character.
Someone that can help me?
Greetings from Daniel!
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity test_string is
port(
dummy_in : in std_logic;
dummy_out : out std_logic);
end test_string;
architecture rtl of test_string is
subtype string_type is string (1 to 2);
signal test_string: string_type;
begin
test_string(1)<='d'; --ok
--trying with "carriage return"
test_string(2)<=cr; --error. Syntax help please!
end rtl;
I can't find the correct syntax when I use the "carriage return" character.
Someone that can help me?
Greetings from Daniel!
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity test_string is
port(
dummy_in : in std_logic;
dummy_out : out std_logic);
end test_string;
architecture rtl of test_string is
subtype string_type is string (1 to 2);
signal test_string: string_type;
begin
test_string(1)<='d'; --ok
--trying with "carriage return"
test_string(2)<=cr; --error. Syntax help please!
end rtl;