LTspice solution meeded.1) Using the 74HC123 part in | Chegg.com

Responsive image
source