clocks variable for each port

This patch fixes a bug where different ports of the CPU store the clock state all ports in the same variable, where they should actually be stored separately.