SCampb29 is correct.
Note, though, that upgrading to the latest tech is not always a good thing. At least, that is the case in DA, which is what I play.
Consider ion engines. I research impulse engines for the speed boost that ALL ships get - no matter what engine they use. However, I keep using ion engines. Compare the cost and space per engine speed unit and you will see what I mean.
There are other such cases, as well.