A former portfolio manager at Raj Rajaratnam's Galleon Group described pressure at the hedge fund to get an edge in trading and said he gave inside tips from a Morgan Stanley investment banker to his boss.

The testimony on Tuesday of Adam Smith, the first former Galleon employee to testify at the trial, provided a glimpse into the inner workings of Rajaratnam's hedge fund.

Smith said he passed on confidential information to the one-time billionaire, including periodic email updates written in code on a pending merger he learned of from a friend at Morgan Stanley.

Smith, 39, said he referred to the two companies, Integrated Circuit Systems and Integrated Devices Technology, in code as the two eyes to Rajaratnam. The deal was announced in June 2005 and was valued at $1.7 billion at the time.

I remember after the announcement having a sinking feeling in my stomach that this may be a problem, he said on the witness stand in Manhattan federal court in the biggest Wall Street insider trading scandal trial in decades.

Sri Lankan-born Rajaratnam, 53, is accused of making $45 million in illicit profit between 2003 and 2009 on stock tips from high-placed corporate insiders. He has vowed to clear his name at his criminal trial, arguing his trades were based on research or publicly available information.

Smith pleaded guilty in January and said he leaked details about merger activity and earnings reports to Rajaratnam and others at Galleon.

He said Kamal Ahmed, a Morgan Stanley banker in California, tipped him about the pending merger of Integrated Circuit and Integrated Devices.

He told me that they were in the process of being acquired by another company, Smith said, referring to Ahmed. He said he had previously worked with Ahmed at Morgan Stanley.

According to a January 20 letter from prosecutors to Rajaratnam's lawyers, the Morgan Stanley banker around May 2006 leaked details of Advanced Micro Devices Inc's interest in buying ATI Technologies Inc, and that news of a pending takeover was later passed on to Rajaratnam.

No charges have been announced against Ahmed. Morgan Stanley said in January that the banker had been put on leave.

Ahmed's lawyer, Douglas Tween, was not immediately available for comment on Tuesday. Tween has said previously that Ahmed was cooperating with Morgan Stanley in its investigation and we are confident when all the facts are known it will be shown that he did nothing illegal or unethical.

Smith testified there was pressure at Galleon for getting an edge -- extra pieces of information where a company's results might differ from Wall Street expectations.

Research is sort of doing your homework ahead of time, Smith said. Getting the number is more like cheating on a test ... I knew the answer ahead of time.

Smith was calm on the witness stand, often leaning on his elbow as he answered questions. He described everyday operations at Galleon, including intense 8:30 a.m. meetings in which analysts needed to be prepared to answer a barrage of questions.

MCKINSEY CONNECTION

Rajaratnam is accused of assembling a web of high-placed contacts who provided him illicit stock tips. Prosecutors contend that former Goldman Sachs Group Inc board member Rajat Gupta, who has not been criminally charged, leaked details about the bank to Rajaratnam.

Also on Tuesday, prosecutors introduced McKinsey & Co consultancy phone records to show that Gupta, a former global head of the elite management firm, called Rajaratnam seconds after Goldman board meetings in 2008.

A McKinsey manager responsible for internal investigations testified that Gupta dialed into Goldman Sachs board meetings on September 23, 2008 and October 23, 2008 from a conference room phone in the consultancy's New York office. Gupta maintained an office, email and phone at McKinsey after he retired in 2007.

Our firm no longer has a professional relationship with Rajat Gupta, a McKinsey spokesman said in a statement on Tuesday.

Rajaratnam's trial started in early March and is expected to last two months. He is charged with conspiracy and securities fraud and faces up to 20 years in prison if convicted.

The case is USA v Raj Rajaratnam et al, U.S. District Court for the Southern District of New York, No. 09-01184.

(Additional reporting by Grant McCool; writing by Martha Graybow, editing by Matthew Lewis and Gerald E. McCormick)