Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15321 Discussions

Error (10500): VHDL syntax error at mux5to1.vhd(15) near text "IN"; expecting an identifier ("in" is a reserved keyword), or a string literal what is the problem?

gAcqu
Beginner
3,867 Views
 
0 Kudos
1 Solution
sstrell
Honored Contributor III
3,731 Views

SIGNALs do not have IN/OUT designations. It should be:

 

SIGNAL m0,m1,m2: STD_LOGIC_VECTOR(2 DOWNTO 0);

 

The error is pushed down to line 15 because that's the first line after this error.

 

#iwork4intel

View solution in original post

3 Replies
gAcqu
Beginner
3,731 Views

LIBRARY ieee ;

USE ieee.std_logic_1164.all ;

 

ENTITY mux5to1 IS

PORT (x: IN STD_LOGIC_VECTOR(14 DOWNTO 0) ;

s : IN STD_LOGIC_VECTOR(17 DOWNTO 15) ;

f : OUT STD_LOGIC_VECTOR(2 DOWNTO 0)) ;

END mux5to1 ;

 

ARCHITECTURE Structure OF mux5to1 IS

 

SIGNAL m0,m1,m2: OUT STD_LOGIC_VECTOR(2 DOWNTO 0);

 

COMPONENT mux2to1

PORT( x,y: IN STD_LOGIC_VECTOR(2 DOWNTO 0) ;

             s : IN STD_LOGIC ;

             f : OUT STD_LOGIC_VECTOR(2 DOWNTO 0) ) ;

END COMPONENT ;

 

BEGIN

Mux1: mux2to1 PORT MAP

( x(14 downto 12),x(11 downto 9), s(15), m0(2 DOWNTO 0)) ;

Mux2: mux2to1 PORT MAP

( x(8 downto 6),x(5 downto 3), s(15), m1(2 DOWNTO 0)) ;

Mux3: mux2to1 PORT MAP

( m0(2 DOWNTO 0),m1(2 DOWNTO 0), s(16), m2(2 DOWNTO 0)) ;

Mux4: mux2to1 PORT MAP

( m2(2 DOWNTO 0),x(2 downto 0), s(17), f) ;

END Structure ;

sstrell
Honored Contributor III
3,732 Views

SIGNALs do not have IN/OUT designations. It should be:

 

SIGNAL m0,m1,m2: STD_LOGIC_VECTOR(2 DOWNTO 0);

 

The error is pushed down to line 15 because that's the first line after this error.

 

#iwork4intel

gAcqu
Beginner
3,731 Views
Reply