- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks FvM the code compiled beautifully.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page