WILSONVILLE, Ore. (AP) ¿ Mentor Graphics Corp. said Thursday it has agreed to buy LogicVision Inc. in an all-stock deal valued at $13 million. Stockholders will receive 0.2006 share of Mentor for each LogicVision share they hold. LogicVision, a San Jose, Calif., company that develops software for chip makers, saw its stock jump 35 cents, or 38 percent, to $1.28 in afternoon trading. The stock traded for 24 cents last July but traded at a 52-week high of $2.02 a year ago. Shares of Mentor, which makes software for designing and testing electronic components, slipped 36 cents, or 5.1 percent, to $6.72.