AR# 3900

3.x FPGA Express - Error: "Type mismatch on left and/or right operand of binary operator. (VSS-523)"

Description

Keywords: VSS-523, libraries, VHDL, Express

Urgency: Standard

General Description:
When I compile a VHDL file that contains binary operation on bus signals, the following error occurs:

Error: <path to vhdl file> line <line number>
Type mismatch on left and/or right operand of binary operator. (VSS-523)

This error is due to a missing library.

Solution

To avoid this error, be sure to include the following line in the library section of the VHDL file:

use IEEE.std_logic_unsigned.all;
AR# 3900
Date 08/11/2003
Status Archive
Type General Article