cpu之pc_reg
2017-12-18 15:13
162 查看
module pc_reg( input wire clk, input wire rst, input wire stall_id, input wire jump, input wire[1:0] stall_branch_t, input wire[31:0] pc1, input wire[31:0] pc2,//专门为跳转指令设置的 output reg[31:0] pc ); always @(posedge clk) begin if (rst==1'b1) begin pc=32'h0; end else begin if (jump!=1'b1) begin if (stall_id==1'b0) begin if (stall_branch_t==2'b10) begin pc <= pc1-32'h4; end else begin pc<=pc1; end end else begin pc <= pc1-32'h4; end end else begin pc <= pc2; end end end endmodule
相关文章推荐
- pc解读3:cpu指令如何读写硬盘
- Why does DOS use 100% CPU under Virtual PC?
- C#中获取CPU序列号、网卡Mac地址、IP地址、硬盘序列号、登录用户名、PC类型、计算机名称、物理内存
- 上机练习2 类与对象 pc cpu harddisk对象组合
- C#中获取CPU序列号、网卡Mac地址、IP地址、硬盘序列号、登录用户名、PC类型、计算机名称、物理内存,Singleton模式
- C#获取CPU序列号,MAC地址,硬盘ID,本机IP地址,计算机名,物理内存,PC类型
- C#中获取CPU序列号、网卡Mac地址、IP地址、硬盘序列号、登录用户名、PC类型、计算机名称、物理内存
- c#中获取cpu序列号、网卡mac地址、ip地址、硬盘序列号、登录用户名、pc类型、计算机名称、物理内存
- 用类描述计算机中CPU的速度和硬盘的容量。要求Java的应用程序有4个类,名字分别是PC、CPU、HardDisk和Test,其中Test是主类。
- NVIDIA发炮:用CPU衡量PC性能的时代已经过去
- 雷军:未来手机CPU将比PC跑得快
- c#中获取cpu序列号、网卡mac地址、ip地址、硬盘序列号、登录用户名、pc类型、计算机名称、物理内存 【转载】
- 用类描述计算机中CPU的速度和硬盘的容量。要求Java的应用程序有4个类,名字分别是PC、CPU、HardDisk和Test,其中Test是主类。
- cpu之PCBranch
- 硬件干货分享-(一)CPU-PC的大脑
- PC架构系列:CPU/RAM/IO总线的发展历史!
- Why does DOS use 100% CPU under Virtual PC?
- cpu之PCPLUS4
- 【PC问题】Windows7关机后CPU及风扇继续运转-排查日志
- PC架构系列:CPU/RAM/IO总线的发展历史!