Direct digital design of general multirate sampled-data systems is considered. To tackle causality constraints, a new and natural framework is proposed using nest operators and nest algebras. Based on this framework explicit solutions to the H1 and H2 multirate control problems are developed in the frequency domain.