Answers Database


V2.1i COREGEN USER GUIDE, MTI, VHDL flow: 'Error xxxmyadder8.vhd(20): near "myadder8_top" expecting COMPONENT' in VHDL testbench example


Record #6861

Product Family: Software

Product Line: Coregen

Product Part: Coregen User Guide

Problem Title:
V2.1i COREGEN USER GUIDE, MTI, VHDL flow: 'Error xxxmyadder8.vhd(20): near "myadder8_top" expecting COMPONENT' in VHDL testbench example



Problem Description:
Urgency: standard

General Description:
The MTI ModelSIM/VHDL simulator issues the following error on the sample
VHDL testbench file copied from the User Guide:

# ERROR: /<path_to_testbench_myadder8.vhd>(20): near "myadder8_top": expecting: COMPONENT



Solution 1:

There is a syntax error in the example testbench file, testbench.vhd.
The END statement for the COMPONENT corresponding to the top level
design block should read,

     END component;

instead of:

    END myadder8_top;






End of Record #6861 - Last Modified: 06/23/99 15:36

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips!