Sorry I am multitasking poorly right now lol.
To get the TCM from Mazda you need to order the entire "mechatronics" unit. It goes by a few names depending on who you are talking to but can be called a valve body, mechatronics unit, Mazda lists it as "Valve, Control" in most of the parts catalogs. It consists of a traditional valve body including solenoids, wiring harness and TCM. Mazda sells it as an entire unit because it uses direct linear solenoids that have flow rates that vary between solenoid. When Mazda produces the valve bodies they flow each solenoid to each valve body and write that information into the TCM so it can correctly control each solenoid. First picture is the whole unit, second picture is the TCM portion and then third is the solenoids.
Mazda will sell you the valve body separate from a new transmission, my reply should have read that I've ordered the mechatronics assemblies.