这里有一个博客是讲这个的。
https://blog.csdn.net/leewenjin/article/details/7646148
需要使用锁存器74LS373的
可以参考这篇文章http://blog.sina.com.cn/s/blog_7ec8fc2c010134om.html