Legal Separation & Divorce

I'm getting a little confused with information online.

Do we need to file for legal separation (then be separated for "x" amount of time) before we can file for divorce or can we just file for divorce (the follow the state rules during the process of divorce etc)

We are attempting for a uncontested divorce.