📄 state.v
字号:
module state(clk,rst,st,sp,con,crst,hold);
input clk,rst,st,sp;
output con,crst,hold;
reg con,crst,hold;
always @(posedge clk or negedge rst)
begin
if (rst==0)
begin
con=1'b0;
crst=1'b1;
hold=1'b0;
end
else
begin
if(st)
begin
con=;
crst=;
hold=;
end
if(sp)
begin
con=;
crst=;
hold=;
end
end
end
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -