Re: Assignment #3

Ed Casas (edc@ece.ubc.ca) Fri, 10 Nov 2000 08:20:25 -0800


Date: Fri, 10 Nov 2000 08:20:25 -0800
From: Ed Casas <edc@ece.ubc.ca>
Subject: Re: Assignment #3

> When compiling the top-level entity file, there are error > messages on the line: > signal a_in, a_out: std_logic_vector(data_word); Use just "data_word" as the type. > While "data_word" is of type unsigned, as declared in the > datatype package. The error messages are: "Subtype indication > error: subtype indication base type 'UNSIGNED' must match > constraining base type 'INTEGER'" and "Type error: range must > be of a discrete type". What doese these messages mean? I > have never use integer type in my codes. This message means the type of the "constraining" expression (the array index bounds) must be of type integer. You've used a type ("data_word") instead of an integer expression. -- Ed Casas edc@ece.ubc.ca http://casas.ece.ubc.ca +1 604 822-2592