problem with libraries?

Joined
Apr 25, 2007
Messages
6
Reaction score
0
got an issue with the size of my "std_logic_vector"

here's the component:

PHP:
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use IEEE.Numeric_STD.all;

entity statemachine is
    port( 
        clock : in std_logic;
        reset : in std_logic;
        in_pin : in std_logic;
        out_pin: in std_logic;
        empty : out std_logic;
        full : out std_logic;
        err : out std_logic;
        number : out std_logic_vector (9 downto 0)
        );
    end;

the design compiles fine ... but when i go to start simulation fatal error occurs and error points to this line :

number : out std_logic_vector (9 downto 0)

uh ... i have no idea why? it was (7 downto 0) before but the design requires that i count up to 1024 and not 256.

Any comments would be very much appreciated! thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top