6
5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园 www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 1/6 缘木求鱼 天书奇谭 埋头求术,抬头问道。 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 Chapter 5. Gate-level Modeling 5.4 Exercises 1. Create your own 2-input Verilog gates called my_or, my_and and my_not from 2-input nand gates. Check the functionality of these gates with a stimulus module. my answer: < 2011327 28 1 2 6 7 8 9 13 14 15 16 20 21 22 23 27 28 29 30 3 4 5 6 导航 博客园 首页 新随笔 联系 订阅 管理 统计 随笔 - 131 文章 - 0 评论 - 139 引用 - 0 公告 昵称:yf.x 园龄:32个月 粉丝:50 关注:2 + 加关注 搜索 找找 谷歌 常用链接 我的随笔 我的评论 我的参与 最新评论 我的标签 随笔分类(256) Analog electrics(21) DE2(34) Digital Logic(53) Java(22) lightroom(1) Linux(3) ModelSim(6) Nios II(4) office(19) Quartus II(39) shooting(1) SOPC(4) Verilog HDL(49) 随笔档案(131) 201212(1) 201112(1) 201110(1) 20118(1) 20117(8) 20116(20) 20115(11) 20114(16) 20113(25) 20112(1) 201012(10) 201011(11) 20109(2) 20107(1) 20106(2) 20105(2) 20104(6) 20103(12) 相册 Qii_tutorial

solutions manual by samir palnitkar verilog hdl ch-11

Embed Size (px)

DESCRIPTION

draw the circuit for xor gate,using nmos and pmos switches.write the verilog description for the circuit.chp-11switch label modeling

Citation preview

Page 1: solutions  manual  by samir palnitkar verilog hdl ch-11

5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园

www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 1/6

缘木求鱼 之 天书奇谭埋头求术,抬头问道。

【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05

Chapter 5. Gate-level Modeling

5.4 Exercises

1. Create your own 2-input Verilog gates called my_or, my_and and my_not from 2-input nand gates. Check the

functionality of these gates with a stimulus module.

my answer:

< 2011年3月

日 一 二 三

27 28 1 2

6 7 8 9

13 14 15 16

20 21 22 23

27 28 29 30

3 4 5 6

导航

博客园

首页

新随笔

联系

订阅

管理

统计

随笔 - 131

文章 - 0

评论 - 139

引用 - 0

公告

昵称:yf.x

园龄:3年2个月

粉丝:50

关注:2

+加关注

搜索

找找看

谷歌搜索

常用链接

我的随笔

我的评论

我的参与

最新评论

我的标签

随笔分类(256)

Analog electrics(21)

DE2(34)

Digital Logic(53)

Java(22)

lightroom(1)

Linux(3)

ModelSim(6)

Nios II(4)

office(19)

Quartus II(39)

shooting(1)

SOPC(4)

Verilog HDL(49)

随笔档案(131)

2012年12月 (1)

2011年12月 (1)

2011年10月 (1)

2011年8月 (1)

2011年7月 (8)

2011年6月 (20)

2011年5月 (11)

2011年4月 (16)

2011年3月 (25)

2011年2月 (1)

2010年12月 (10)

2010年11月 (11)

2010年9月 (2)

2010年7月 (1)

2010年6月 (2)

2010年5月 (2)

2010年4月 (6)

2010年3月 (12)

相册

Qii_tutorial

Page 2: solutions  manual  by samir palnitkar verilog hdl ch-11

5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园

www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 2/6

2. A 2-input xor gate can be built from my_and, my_or and my_not gates. Construct an xor module in Verilog that

realizes the logic function, z=xy’+x’y. Inputs are x and y, and z is the output. Write a stimulus module that exercises all

four combinations of x and y inputs.

my answer:

3. The 1-bit full adder described in the chapter can be expressed in a sum of products form.

sum=a.b.c_in+a’.b.c_in’+a’.b’.c_in+a.b’c_in’

c_out=a.b+b.c_in+a.c_in

fpga

.COM 缺氧®(张亚峰)

cainong

ilove314

ouxiang

chna

fpga4fun

ni_labview

riple

积分与排名

积分 - 26653

排名 - 4960

最新评论

1. Re:(原创)汽车尾灯电路设计(Digital

Logic)(DE2)

最后这些是什么意思啊?//2hz clock divn #

(.WIDTH(25), .N(25000000)) u0 (

.clk(CLOCK_50), .rst_n(nrst),

.o_clk(cp)); 我试了下,会报错啊。不知道什

么意思,也不知道怎么解决。望楼主解答,谢

谢报错内容如下:Node instantiates

undefined entity...

2. Re:【原创】DE2 实验练习解答—lab 3:

锁存器、触发器和寄存器(digital Logic)

(DE2)(quartus II)

@wws4158oh,that's because i didn't

publish the "seg7_lut" module,

******************************

************module SEG7_LUT (

oSEG,iDIG );input [3:0] iDIG;output

[6:0] oSEG;reg [6:0] oSEG;always

@(iD...

3. Re:【原创】DE2 实验练习解答—lab 3:

锁存器、触发器和寄存器(digital Logic)

(DE2)(quartus II)

nihao bo zhu

wo buneng da zhongwen

part5 you cuowu

node instance"uh0" instantiates

undefined entity "seg7_lut"

qing wen zhe shi shenme yisi

4. Re:【原创】如何使用DE2的1602LCD --

之一(quartus)(verilog)(digital

logic)

preStart<= iStart;

if({preStart,iStart}==2'b01) // latch ?

begin mStart <= 1'b1; oDone <= 1'b0;

endpreStart<= iStart; 赋值之后,

{preStart,iStar...

5. Re:【原创】DE2 实验练习解答—lab 2:

数字和显示(digital Logic)(DE2)

真值表搞出来了,思路也貌似懂了,就是还有

点模糊,以后多多向你啊

6. Re:【原创】DE2 实验练习解答—lab 2:

数字和显示(digital Logic)(DE2)

博主你好,能把part4中A电路的真值表给说下

吗?我在这个地方想好长时间还是没搞

定。。。

7. Re:【原创】DE2 实验练习解答—lab 3:

锁存器、触发器和寄存器(digital Logic)

(DE2)(quartus II)

懂了

8. Re:【原创】DE2 实验练习解答—lab 3:

锁存器、触发器和寄存器(digital Logic)

(DE2)(quartus II)

博主你好,你在Part3主从D触发器的仿真图

是不是错了,还是程序错了?我刚开始学,也

做的这个实验,按照你的程序我仿真的功能仿

真波形输出一直是个高电平,请博主指点一

下,谢谢

[img]C:\Users\lenovo\Desktop[/img]

Page 3: solutions  manual  by samir palnitkar verilog hdl ch-11

5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园

www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 3/6

Assuming a,b,c_in are the inputs and sum and c_out are the outputs, design a logic circuit to implement the 1-bit full

adder, using only and, not ,and or gates. Write the Verilog description for the circuit. You may use up to 4-input Verilog

primitive and and or gates. Write the stimulus for the full adder and check the functionality for all input combinations.

my answer:

4. The logic diagram for an RS latch with delay is shown below.

Write the Verilog description for the RS latch. Include delays of 1 unit when instantiating the nor gates. Write the

stimulus module for the RS latch, using the following table, and verify the outputs.

9. Re:[笔记]再笔记--边干边学Verilog HDL -

-001

就是比较矛盾,不知道自己学的种么样!

10. Re:[笔记]再笔记--边干边学Verilog HDL

--001

哦,原来。。。我也学来着呢

阅读排行榜

1. (翻译)Altera SOPC Builder 指南

(SOPC)(DE2)(2073)

2. 【翻译】Quartus II里如何仿真(2052)

3. 【原创】DE2 实验练习解答—lab 2:数字

和显示(digital Logic)(DE2)(1808)

4. [笔记]模电--如何判断和识别二极管的正负

极(1788)

5. 【原创】DE2 实验练习解答—lab 3:锁存

器、触发器和寄存器(digital Logic)

(DE2)(quartus II)(1740)

6. (原创)如何在Quartus II里查看综合器

生成的原理图(Quartus II)(1613)

7. (原创) DE2 实验练习解答—lab 1 (Digital

Logic) (DE2) (Quartus II)(1587)

8. (笔记)Quartus II 与 DE2 入门指导

(Digital Logic)(DE2)(1443)

9. 【原创】DE2 实验练习解答—lab4

counters【verilog】【digital logic】

(1429)

10. 【翻译】基于Verilog设计的时序注意事

项【Quartus II】【Digital L

ogic】(1376)

评论排行榜

1. 【原创】DE2 实验练习解答—lab 2:数字

和显示(digital Logic)(DE2)(28)

2. (翻译)Altera Monitor Program 指南

(SOPC)(DE2)(14)

3. 【原创】DE2实验解答—lab7 (Quartus

II)(Digital Logic)(Verilog HDL)(14)

4. 【原创】基于Altera DE2的数字实验—

001_1 (DE2)(Digital Logical)

(Verilog)(8)

5. (原创) DE2 实验练习解答—lab 1 (Digital

Logic) (DE2) (Quartus II)(8)

6. (笔记)Quartus II 与 DE2 入门指导

(Digital Logic)(DE2)(7)

7. 【原创】DE2 实验练习解答—lab 3:锁存

器、触发器和寄存器(digital Logic)

(DE2)(quartus II)(6)

8. 【翻译】Quartus II里如何仿真(6)

9. 【原创】基于Altera DE2的数字实验—

001_2 (DE2)(Digital Logical)

(Verilog)(6)

10. (翻译)Altera SOPC Builder 指南

(SOPC)(DE2)(5)

推荐排行榜

1. (翻译)Altera SOPC Builder 指南

(SOPC)(DE2)(4)

2. (原创)汽车尾灯电路设计(Digital

Logic)(DE2)(3)

3. 【翻译】如何编写测试台--之一(2)

4. 【翻译】ModelSim指南 IV 

(ModelSim)(Verilog)

(Digital Logic)(2)

5. 【翻译】ModelSim指南 III

(ModelSIM)(Verilog)(Digital

Logic)(2)

6. (原创)多功能数字钟(Digital Logic)(DE2)

(QuartusII)(2)

7. 【原创】基于Altera DE2的数字实验—

001_2 (DE2)(Digital Logical)

(Verilog)(2)

8. 【翻译】Nios II处理器简介 (Nios II)

(2)

9. 【翻译】Quartus II里如何仿真(1)

10. 【笔记】再笔记--边干边学Verilog HDL

– 009(1)

Page 4: solutions  manual  by samir palnitkar verilog hdl ch-11

5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园

www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 4/6

my answer:

5. Design a 2-to-1 multiplexer using bufif0 and bufif1 gates as shown below.

The delay specification for gates b1 and b2 are as follows:

Page 5: solutions  manual  by samir palnitkar verilog hdl ch-11

5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园

www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 5/6

yf.x

关注 - 2

粉丝 - 50

+加关注

0 0

(请您对文章做出评价)

Min Typ Max

Rise 1 2 3

Fall 3 4 5

Turnoff 5 6 7

Apply stimuls and test the output values.

my answer:

Reference

Smair Palnitkar, <Verilog HDL: A Guide to Digital Design and Synthesis (2nd) >

分类: Digital Logic, Verilog HDL

绿色通道: 好文要顶好文要顶 关注我关注我 收藏该文收藏该文 与我联系与我联系

« 上一篇:【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch04

» 下一篇:【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch06

posted on 2011-03-13 18:45 yf.x 阅读(486) 评论(0) 编辑 收藏

刷新评论 刷新页面 返回顶部

注册用户登录后才能发表评论,请 登录 或 注册,访问网站首页。

Page 6: solutions  manual  by samir palnitkar verilog hdl ch-11

5/19/13 【原创】The solutional manual of the Verilog HDL: A Guide to Digital Design and Synthesis (2nd)--ch05 - yf.x - 博客园

www.cnblogs.com/halflife/archive/2011/03/13/1982867.html 6/6

找优秀程序员,就在博客园

博客园首页 博问 新闻 闪存 程序员招聘 知识库

最新IT新闻:

· 纽约开发者公布 Google Glass 模板代码

· Tumblr会成为雅虎的MySpace吗?

· 康宁推硬度更高/更薄玻璃:比大猩猩还强

· 从设计到技术,新版Google Maps背后的故事

· Google 新设备和宇宙终极目的之间的关系

» 更多新闻...

最新知识库文章:

· 关于软件开发的一些常识和思考

· 软件开发中没有所谓正确的方法

· 软件开发如同木匠做桌子

· 指尖上的正则表达式–入门篇

· 软件开发中的11个系统思维定律

» 更多知识库文章...

FPGA Software Design ToolispLEVER Starter Trial Download in 3 Easy Steps

LatticeSemi.com/

历史上的今天:

2010-03-13 (原创)如何在Quartus II里查看综合器生成的原理图(Quartus II)

Powered by:

博客园

Copyright © yf.x