Hi
you have to be carefull when you assign value to an inout port.
you can only assign the value to inout port, when the corresponding control signal suggests, that the inout port is now acting as an 'input' port. and when it is acting as output then you will have to put this inout pin to 'Z'.
For example if the control signal which controls the direction of inout pin is say 'EN' then you will do
if(EN = '1') then
inout_pin <= whatever you want to put
else
inout_pin <= 'Z'
end if.
I am assuming when 'EN' is '1', the inpout_pin is in input mode
Kr,
Avi http://www.vlsiip.com