title: From-Gates-to-Circuits-II-Sequential-Circuits
date: 2023-11-01
author:
- AllenYGY
status: DONE
tags:
- NOTE
- CO
- Lec6
created: 2024-01-16T21:03
updated: 2024-05-31T01:16
publish: True
From-Gates-to-Circuits-II-Sequential-Circuits
Sequential circuits’ output depends not only on its current inputs, but also its previous inputs (current state)
Input:
Output:
Set Function:
When
Then change
Reset Function:
When
Then change
When
This results in a J-K flip-flop
For inputs SR = 00, the next value of Q could be either or 1, depending on the current value of Q.
So the same inputs can yield different outputs, depending on whether the latch was previously set or reset.
This is very different from the combinational circuits that we’ve seen so far, where the same inputs always yield the same outputs.
4-bit latch
A clock is a special circuit that produces electrical pulses
Clock speed is generally measured in megahertz (Mhz), or millions of pulses per second
A clock is used by a sequential circuit to decide when to update the state of the circuit 决定何时更新电路状态
inputs to the circuit can only affect the storage element at given, discrete instances of time
When {J=1,K=0,C=1} work like a SR latch
When {J=0,K=1,C=1} work like a SR latch
When {J=1,K=1} Q 状态反转
It stores one bit of information
The output changes only when the value of D changes
an output value of 1 means the circuit is currently “storing” a value of 1
A D flip-flop is a true representation of physical computer memory
D 实现设置/重置 0/1
EN 实现 锁存 当EN为0 电路锁存
B0 (t+1) = JK (1, 1) = NOT B0(t)
B1 (t+1) = JK (B0(t), B0(t))
B2 (t+1)= JK (B0(t)B1(t), B0(t)B1(t))
B3 (t+1)= JK (B0(t)B1(t)B2(t), B0(t)B1(t)B2(t))
可以说是三个4-bit register组合
Decoder 选择
输出则为
以选择
具体来说:
10根地址线的微处理器(1KB内存):
存储芯片:
所需存储芯片数量:
芯片选择:
每个芯片内存位置的选择:
地址:000 0000000: