- 5
- 0
- 约6.92千字
- 约 12页
- 2018-04-23 发布于河南
- 举报
超大规模实验报告
《超大规模集成电路设计基础》
上机报告
姓名:
学号:
日期:
指导教师:
上机练习(一):练习使用QuartusII软件
1. 内容及目的:
能够熟练地在QuartusII软件环境下进行编程,上机内容为:基本门设计的VerilogHDL语言输入、程序编译和波形仿真。
2. 上机程序:
⑴ 建立4输入与或非的门级模型
module AOI4(f,a,b,c,d);
input a,b,c,d;
output f;
wire w1,w2;
and G1(w1,a,b);
and G2(w2,c,d);
nor G3(f,w1,w2);
endmodule
//测试生成向量模块
module tb_AOI4;
reg in_a,in_b,in_c,in_d;
wire out_f;
initial begin
in_a = 0;in_b = 1;in_c=0;in_d=1;
#10;in_a = 1;in_b = 0;in_d=0;
#5;in_c=1;
#5;in_a = 0;in_d=1;in_c=0;
#5;$finish;
end
AOI4 AOI4_inst ( .f(out_f),
.a(in_a),
.b(in_b),
.c(in_c),
.d(in_d)
);
Endmodule
⑵ 门延时程序设计
module delayex(out,a,b,c);
input a,b,c;
output out;
wire w1;
and #1(w1,a,b);
or #2(out,w1,c);
endmodule
module stimulus;
reg A,B,C;
wire OUT;
delayex G1(OUT,A,B,C);
initial
begin
$monitor ($time,A=%b,B=%b,C%=c,OUT=%b,A,B,C,OUT);
A=1;B=0;C=0;
#1B=1;C=1;
#2A=0;
#1B=0;
#1C=0;
#3 $finish;
end
endmodule
⑶ 建立2输入与非门的开关级模型
module fetnand2(out,in_a,in_b);
input in_a,in_b;
output out;
wire wn;
supply1 vdd;
supply0 gnd;
pmos p1(out,vdd,in_a);
pmos p2(out,vdd,in_b);
nmos n1(wn,gnd,in_a);
nmos n2(out,wn,in_b);
endmodule
//测试向量生成模块
module tb_fetnand2;
reg in_a;
reg in_b;
wire out_fetnand2;
initial begin
in_a = 0;
in_b = 0;
#30;
in_a = 1;
in_b = 1;
#50;
$finish;
end
fetnand2 fetnand2_inst ( .out(out_fetnand2),
.in_a(in_a),
.in_b(in_b)
);
Endmodule
⑷ 运用三态门建立MUX模型
module mux21(out,p0,p1,s);
input p0,p1,s;
output out;
bufif0(out,p0,s);
bufif1(out,p1,s);
endmodule
//测试生成向量模块
module tb_mux21;
reg in_a,in_b,in_c;
wire out_fetnand2;
initial begin
in_a = 0;in_b = 0;in_c=0;
#30;in_b = 1;
#50;in_c=1;
#20;$finish;
end
mux21 mux21_inst ( .out(out_fetnand2),
.p0(in_a),
您可能关注的文档
- 关注现在,关注未来.ppt.ppt
- 2007土建第2章1.ppt
- 促织词法归纳1.ppt
- 3.函数的定义域和值域.doc
- 计算机c语言二级考试公共基础资料.doc
- 概率8-1g.ppt
- 武大电动力学课件6.6力学.ppt.ppt
- 综合实践活动图片.doc.doc
- 掉话问题论文.doc
- 全国中考物理分类汇编1.1声.doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- 【花生十三】25公务员考试资料分析速算练习册及速算过程.pdf VIP
- mst2016说明书.pdf VIP
- 口腔科课件洁治.pptx
- 2025兴安盟公安局招聘165名留置看护警务辅助人员备考试题及答案解析.docx VIP
- 35KV变电站毕业设计(完整版).doc VIP
- AP微观经济学 2012年真题 (选择题+问答题) AP Microeconomics 2012 Released Exam and Answers (MCQ+FRQ).pdf VIP
- 上海师范大学天华学院公共课《大学计算机基础》期末试卷A(有答案).docx VIP
- 高中生对AI 技术应用的态度与认知调查问卷.docx VIP
- 2025年度”五个方面“专题组织生活会个人对照检查发言材料.docx VIP
- 南方医科大学各专业实习大纲汇编.pdf VIP
原创力文档

文档评论(0)