Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is wrong with my code?

Status
Not open for further replies.

bluesource

Programmer
Jan 30, 2008
1
CA
Hi there

I keep getting this error on my code

Error (10621): VHDL Use Clause error at ManAlign.vhd(48): more than one Use Clause imports a declaration of simple name "SHR" -- none of the declarations are directly visible

This is the line of code I keep getting the error

if (exp_diff >0) then
-->error here manB := SHR(inB(24 downto 0), exp_diff);
else
manA := SHR(inA(24 downto 0), exp_diff);
end if; --for expdiff

I have the following libraries
Library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all; --also support SHR and SHL
use ieee.std_logic_signed.all;
use ieee.std_logic_misc.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_unsigned.SHR;

for some reason all the libraries appear blue but 'SHR'

Help Please...
 
Hi bluesource,
Your code has got error because you used the variable "exp_diff" for the function SHR. It should be constant.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top