With my p28, the guy just soldered in a socket and plugged a chip into it. You can get chips with basemaps or whatever from places like xenocron. I really should upgrade that and go with something like crome or hondata, I know my motor is not tuned optimally. I've been out of the honda game for like 10 years, so the k series stuff is all new to me. As far as the distributor, it depends on what year h22 it is. The h22a1 uses an obd1 distributor, the h22a4 (97+) uses a crank angle sensor (4 wires) down at the front of the crankshaft, behind the crank pulley. There is a lot of confusing info out there about that. I believe you can pull the wires out of the f23 harness and re route them up to the h22a1 distributor, and then solder the right connector on at the end, but I've never done it.
With my setup being an h22a4, the f23 harness plugs into the crank sensor, but the distributor plug had to be swapped. Some guys say the ecu needs to have the same distributor it was meant for, like an obd1 ecu needs an obd1 distributor, not the obd2 separate crank angle sensor setup, (and of course no cut or messed up or unshielded wiring), I don't know.