Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

VHDL Type Mismatch error at DorQ.vhd

Altera_Forum
Honored Contributor II
1,603 Views

Hi, I am trying to code for the following file DorQ.vhd but Quartus 2 keeps giving me an error of Error (10381): VHDL Type Mismatch error at DorQ.vhd(49): indexed name returns a value whose type does not match "std_logic_vector", the type of the target expression. 

What might be the problem and how can I fix this. 

Please remember that DorQ.vhd is the top level entity in the design. 

Please post the full source code for DorQ.vhd if you manage to make it compile. 

Thanks for your help and suggestions. 

You will find the files attached.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
886 Views

Please consider the difference between the indexed name wire1(1) and the 1-bit wide slice name wire1(1 downto 1). 

 

All actual parameters of acff and bcff must be slice names.
0 Kudos
Altera_Forum
Honored Contributor II
886 Views

Hi FvM. how do I code for the slice name wire1(1 down to 1). Could you please post the code as it would appear.

0 Kudos
Altera_Forum
Honored Contributor II
886 Views

You'll use slice names where required by the formal, e.g. 

 

ac1: acff port map (RIN, wire1(1 downto 1), wire0(1 downto 1), LIN);
0 Kudos
Altera_Forum
Honored Contributor II
886 Views

Thanks FvM the code compiled beautifully.

0 Kudos
Reply