📄 ir.v
字号:
module IR(op_code,operand,D,Li_,Ei_,clk,clr);
output [3:0] op_code,operand;
input [7:0] D;
input Li_,Ei_,clk,clr;
reg [7:0] q;
always@(posedge clk)
if(clr==1) q<=0;
else if(Li_==0) q<=D;
assign op_code = q[7:4];
assign operand = Ei_ ? 4'bz : q[3:0];
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -