IS CS-2018S1-03
题目来源:Problem 3 日期:2024-08-07 题目主题:CS-数字电路-SRAM 设计
解题思路
我们需要设计一个简单的 SRAM(静态随机存取存储器)电路。问题分为三个部分:
- 设计一个 2 位译码器,具有输入 和 ,输出 ,, 和 。
 - 设计一个读数据的电路,利用第一个问题设计的译码器,从指定的存储单元中读取数据。
 - 在第二个问题的基础上,添加写数据的功能。
 
Solution
Question 1: 2-bit Decoder Design
A 2-bit decoder translates a 2-bit binary input into a one-hot encoded output. Here’s the design:
Truth Table
| 0 | 0 | 0 | 0 | 0 | 1 | 
| 0 | 1 | 0 | 0 | 1 | 0 | 
| 1 | 0 | 0 | 1 | 0 | 0 | 
| 1 | 1 | 1 | 0 | 0 | 0 | 
Logic Equations
Circuit Diagram
Using basic gates (AND, OR, NOT):
Question 2: Reading Stored Data
Given the memory cells , we need to use the decoder to select the correct address and output the stored data.
Circuit Design
- Inputs: ,
 - Outputs: , , ,
 
Each memory cell outputs its value only when selected. The selection signal comes from the decoder outputs , , , .
For address selection:
Question 3: Adding Write Functionality
To add the write functionality, we need to introduce a write signal and data inputs .
Write Mechanism
- At the falling edge of , the values of are stored in the memory cells corresponding to the selected address .
 
Circuit Design Modifications
- Inputs: , , , , , ,
 
Each memory cell has a write input . We need to generate the write signals from and the decoder outputs.
When is active (falling edge of ), the values of are written to the corresponding memory cells .
知识点
难点思路
- 设计译码器的逻辑表达式并实现它
 - 使用译码器选择正确的存储单元进行读取和写入操作
 
解题技巧和信息
- 理解译码器的基本功能和逻辑设计
 - 通过逻辑门实现组合逻辑电路
 - 利用时序逻辑控制存储单元的写入操作
 
重点词汇
- Decoder 译码器
 - Memory Cell 存储单元
 - Address 地址
 - Write 写入
 - Read 读取
 
参考资料
- Digital Design by M. Morris Mano, Chap. 5
 - Fundamentals of Digital Logic with Verilog Design by Stephen Brown and Zvonko Vranesic, Chap. 3