You need to provide more context to your question. From a hardware design point of view, there is no such thing as software. Software is just a process to create a bit pattern that gets downloaded into a memory.
And there is no way to drive an X or Z in hardware (well you can drive a Z by turning off a driver). X and Z are concepts that only exist in simulation.