基于明德扬GVIM模板
https://www.bilibili.com/video/BV15s411A7aJ?from=search&seid=7529145690153607343
模板使用方法:输入相应代码,回车。
- 计数器Jsq
always @(posedge clk or negedge rst_n)begin
if(!rst_n)begin
cnt <= 0;
end
else if(add_cnt)begin
if(end_cnt)
cnt <= 0;
else
cnt <= cnt + 1;
end
end
assign add_cnt = ;
assign end_cnt = add_cnt && cnt== ;
- 时序Shixu
always @(posedge clk or negedge rst_n)begin
if(rst_n==1'b0)begin
end
else begin
end
end
- 组合Zuhe2
always @(*)begin
if()begin
end
else begin
end
end