My 4-Bit TTL CPU

本文介绍了使用Eagle软件设计自制CPU中的程序计数器的过程,并分享了第三版布局图纸。文章详细解释了各引脚的功能及注意事项,如地址总线连接、时钟信号输入等,并提及了时钟电路的设计及其存在的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://www.ttlcpu.com/articles/schematics

Schematics

I'm starting to make some progress with Eagle (light) and I'll be adding schematic diagrams of all of the circuits that make up my CPU.

Program Counter
I just finished doing the 3rd Eagle layout of the program counter and this one actually makes sense to look at. The first two were a mess of wires intersecting and crossing over each other so that it was hard to see what was connected and what wasn't. Hopefully anyone looking at this diagram can follow along and get what I'm aiming for.

Notes:

  • A0 through A7 connect to the 8-bit address bus that the instruction RAM is connected to.
  • CLK and CLK1 get connected to the clock signal. 
  • A-0 to A-3 and B-0 to B-3 are on the same 4-bit bus that connects to the instruction opperand through the control circuitry so that new addresses can be loaded into the program counter through the JUMP instruction. When testing they should have pull-up/down resistors or switches holding them at hi/low.
  • FLAG and SET are active low and used to set the upper 4 bits of the address register for an 8 bit JUMP.
  • FLAG should have a 5K pull-up resistor to V+ attached but I missed that on the schematic. I'll ammend it and upload it later.
  • Taking pin 1 on the 74LS174 low will reset the upper 4 bit register.  
  • Taking pin 1 on both 74LS161's low will reset the counter to zero.

Program Counter Schematic

Clock
The clock circuit is a simple 555 circuit with an adjustable rate via a potentiometer. It works for now but I have to refine my component values to make it work at speeds higher than about 10Hz. I suspect that the duty cycle isn't well balanced related to the frequency. I'll have to scope it to see what's really going on but I think the length of the pulse is too short as the clock speeds up because my counters should be able to work at speed but they start stalling when I get going past 10Hz which is pretty slow.

4-bit clock circuit

1 comment



















评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值