Cowboys get Badgers C Frederick after trading down