東京大学 情報理工学系研究科 コンピュータ科学専攻 2017年8月実施 専門科目I 問題3
Author
祭音Myyura (co-authored with GPT 5.6 SOL)
Description
In this problem, we construct SRAM with 2-bit address width and 4-bit data width. All symbols for inputs and outputs represent 1-bit signals taking values of 0 or 1. We use memory cells with the following specifications. A memory cell has inputs , , and and an output , and stores a 1-bit value. At a falling edge of , the value of is stored in the memory cell. While is 1, the stored value is output to , and otherwise 0 is output to . In your circuit designs, you can use AND, OR, NOT and XOR gates in addition to the specified ones.
Answer the following questions.
(1) Design a 2-bit decoder. It should have inputs and , and outputs , , , and . () outputs 1 if , and outputs 0 otherwise.
(2) Let be the memory cell for the -th bit of data stored in address (). Design a circuit to read the stored data, assuming that values are already stored in the memory cells. The circuit has inputs and , and outputs , , , and . If , then the value stored at is output as (). You can use the decoder designed in question (1).
(3) Add the functionality of storing data to the circuit designed in question (2). Inputs , , , and should be added. At a falling edge of , the value of is stored in the memory cell () for . In this case, the other memory cells keep the stored values. Assume that the values of and are kept unchanged while is 1. You may answer only the differences from your answer to question (2).
题目描述
设计地址宽度为 bit、数据宽度为 bit 的 SRAM。所有输入输出均为取值 或 的单比特信号。存储单元具有输入 和输出 : 的下降沿把 写入单元; 时从 输出所存位,否则输出 。除存储单元外可用 AND、OR、NOT、XOR 门。
(1)设计 2-to-4 译码器。输入为 ,输出为 ,当且仅当 时 。
(2)令 为地址 中第 位的存储单元()。假设数据已经写入,设计读电路:若 ,则输出 应为 中存储的值。
(3)在(2)的电路上增加写功能。新增输入 ;在 的下降沿,将 写入当前地址的 ,其余单元保持原值。假设 期间 保持不变。可只画出相对(2)新增或修改的部分。
Kai
(1)
任意输入下恰有一个 为 。
(2)
把同一行四个单元的选择端均接到该行译码输出:
因为未选中行的单元输出全为 ,按位 OR 后正好得到被选中行的数据。
(3)
对每个 增加如下连接:
题设保证写入期间地址不变,因此选中行的 随 产生下降沿并写入 ;未选中行始终有 ,不会产生写入下降沿。