[an error occurred while processing this directive]
|
PROCESS (SyncWr,SyncRd,AddressReg,Reset,Distance,NCsReg,Data)
BEGIN
if (Reset = '1') then
Distance <= "00000000000000";
Data <= "ZZZZZZZZ";
elsif (NCsReg = '0') then
if (AddressReg = ADDRESS_REG_DISTANCE_LOW) then
if(SyncRd = '0') THEN Data <= Distance(7 downto 0);
end if;
elsif (AddressReg = ADDRESS_REG_DISTANCE_HIGH) then
if(SyncRd = '0') THEN Data <= '0'&'0'&Distance(13 downto 8);
end if;
else Data <= "ZZZZZZZZ";
end if;
else
Distance <= AddressWriteSdram - AddressReadSdram;
Data <= "ZZZZZZZZ";
end if;
END PROCESS;