why i have the error

OP (Company: Uni Hannover) #1386571
Rate this post
• ▲ useful
▼ not useful
Hi,
 i'm newbie in VHDL.
I want to creat  a output with value of a CONSTANT.
And use i the code

...................
entity dreieck_Signal is
    Port ( CLK_IN : in  STD_LOGIC; --CLK_IN = 50 MHZ
           RESET : in  STD_LOGIC;
           Dreieck_wave : out  STD_LOGIC_VECTOR(18 downto 0);
           max_count_wert : out STD_LOGIC_VECTOR(18 downto 0) := (others 
=> 0)
          );
end dreieck_Signal;

architecture Behavioral of dreieck_Signal is

signal  COUNT_UP : STD_LOGIC := '1';
signal  COUNT_DOWN : STD_LOGIC := '0';
signal   COUNTER_VAR : STD_LOGIC_VECTOR(18 downto 0):= (others => '0');
constant MAX_COUNT : STD_LOGIC_VECTOR(18 downto 0) := X"30C";
.......
max_count_wert <= MAX_COUNT;
Dreieck_wave <= COUNTER_VAR;
end Behavioral;
---------------------------
here is error:

"ERROR:HDLParsers:3384 - "Line 44. Size mismatch.  String literal 
"001100001100" is of size 12 but is expected to be of size 19."


Please help me.
Thanks you

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.