Quartus II error - use clause error... - very strange behaviour

J

Jan

Error: VHDL Use Clause error at bff_00.vhd(118): more than one Use
Clause imports a declaration of simple name d_ff -- none of the
declarations are directly visible

QII report this error. I use my own user library which contains some
basic modules, such as D flip-flop, register, edge detector, etc.

d_ff.vhd is a D flip flop component. When I compiled desing with d_ff,
all OK.
Also register component, which consist of N D flip-flop (d_ff
component) works fine.

In larger design MKO - monostable multivibrator I used the same d_ff
in component bff_00 (bistable flip-flop) and edgedet_00 (edge
detector).
When I compiled MKO QII report error mentioned above.

User library path is defined, bff_00 and edgedet_00 are compiled
correct, when I compiled them alone.

MKO always reported errors, but I remove error when I rename d_ff
componet to dff_00.

Any idea why rename of component remove error?
Why alone component compilation is correct and nesting in "bigger"
structured component cause error?

Best regards,
Jan
 
P

Paul Uiterlinden

Jan said:
Error: VHDL Use Clause error at bff_00.vhd(118): more than one Use
Clause imports a declaration of simple name d_ff -- none of the
declarations are directly visible

[snip]

Any idea why rename of component remove error?
Why alone component compilation is correct and nesting in "bigger"
structured component cause error?

There's not enough information for me to see what is happening. What use
clauses do you use?

One other thought: could d_ff be the name of a primitive of Quartus II?

Paul.
 
M

Mike Treseler

Jan said:
Error: VHDL Use Clause error at bff_00.vhd(118): more than one Use
Clause imports a declaration of simple name d_ff -- none of the
declarations are directly visible

Your declaration of d_ff is clashing with
the same name in another library.

Rename yours or eliminate the USE clause
of the other.

-- Mike Treseler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top