i study software in university,now interested in hardware,such as FPGA,pcb design,now here is my confusion,if i study hard i one field,how long will i be a specialist?
David, sounds like you are starting out, so at the risk of sounding arrogant, allow me to point out something...
From your question, you are already aware of that knowledge itself lasts forever, but the value of that knowledge is perishable. So, don't seek something that will merely lasts a long time. Instead, seek something that will give you a good return and can a be good platform for the next. Expect that the value of your knowledge will decline, and is declining. Prepare for that.
To be prepared means you are always looking at what the next platform may be. While you are still relying on the one you are standing, you can pack in a moments notice and move to the next one. To the extend you can do it, don't wait to be trained on upcoming technology, but train yourself whenever you can. When your company train you, they will train others. When you go get the training/knowledge of that next thing before your boss or colleague knew it even exists, you have a leg up against your competitors (in or outside your company).
Not often is a Hall-of-Fame Hockey Player quoted in business books. Wayne Gretzky, a Hall of Fame hockey player, was asked why did he do so well. His reply was: "
I don't go where the puck is. I go where the puck is going to be."
Good luck,
Rick