It's been so long since I did mine I can't remember where all the wires go, there's a switch in the dash, and I think another device behind the grill that has wires going to it. But the one on top should be you positive 12v power source for the comp. Throw 12 volts at it and see if the clutch engages. From there, use know what you do know to back track through the viair wiring diagram to make everything work correctly. Here is some more discussion on it:
http://mazdabscene.com/forums/suspension/using-stock-maz-compressor-for-edc-t1916-120.html