当前位置:网站首页>PC register
PC register
2022-07-05 05:33:00 【Li Junfeng】
PC Register is used to store the address of the instruction .
stay CPU Startup time , It will be initialized , That is, set the current address to 0 .
Used 32 Types are D_FFEC Of D Trigger to implement a 32 Bit general register , The change of the value of the register can only occur on the rising edge of the clock cycle , And input the enable signal En, Clear signal Clrn, Clock signal Clk.
module PC_REG(D, Clk, Clrn, Q);
input [31:0] D;
input Clk, Clrn;
output [31:0] Q;
wire [31:0] Qn;
D_FFEC32 d_ffec(D, Clk, 1, Clrn, Q, Qn);
endmodule
among D_FFEC32 by 32 Bit register , It has an enabling end .
module D_FFEC32(
D,
Clk,
En,
Clrn,
Q,
Qn
);
input wire[31:0] D;
input Clk , En , Clrn;
output wire[31:0] Q;
output wire[31:0]Qn;
D_FFEC d0 (D[0] , Clk , En , Clrn , Q[0] , Qn[0]);
D_FFEC d1 (D[1] , Clk , En , Clrn , Q[1] , Qn[1]);
……
D_FFEC d31 (D[31] , Clk , En , Clrn , Q[31] , Qn[31]);
endmodule
边栏推荐
- Haut OJ 1316: sister choice buys candy III
- SSH password free login settings and use scripts to SSH login and execute instructions
- 剑指 Offer 58 - II. 左旋转字符串
- A misunderstanding about the console window
- kubeadm系列-02-kubelet的配置和启动
- 浅谈JVM(面试常考)
- 软件测试 -- 0 序
- AtCoder Grand Contest 013 E - Placing Squares
- [to be continued] [depth first search] 547 Number of provinces
- Sword finger offer 05 Replace spaces
猜你喜欢
Sword finger offer 05 Replace spaces
剑指 Offer 05. 替换空格
YOLOv5添加注意力機制
On-off and on-off of quality system construction
Light a light with stm32
Support multi-mode polymorphic gbase 8C database continuous innovation and heavy upgrade
Palindrome (csp-s-2021-palin) solution
个人开发的渗透测试工具Satania v1.2更新
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 6 and head, line 8, column 8
SAP-修改系统表数据的方法
随机推荐
搭建完数据库和网站后.打开app测试时候显示服务器正在维护.
SAP method of modifying system table data
Warning using room database: schema export directory is not provided to the annotation processor so we cannot export
Haut OJ 1316: sister choice buys candy III
Haut OJ 1350: choice sends candy
Haut OJ 1245: large factorial of CDs --- high precision factorial
Introduction to tools in TF-A
The number of enclaves
每日一题-无重复字符的最长子串
Haut OJ 1352: string of choice
A misunderstanding about the console window
sync. Interpretation of mutex source code
Detailed explanation of expression (csp-j 2021 expr) topic
Web APIs DOM node
On-off and on-off of quality system construction
剑指 Offer 53 - II. 0~n-1中缺失的数字
[to be continued] [depth first search] 547 Number of provinces
Control Unit 控制部件
Graduation project of game mall
[speed pointer] 142 circular linked list II