计算机程序的构造和解释习题3.29

本文深入探讨了利用De-Morgan法则构造OR门的过程,并通过具体代码实例展示了其设计实现。进一步,文章详细阐述了OR门延迟时间的计算方法,即OR门延迟等于AND门延迟加上两个反相器的延迟乘以2。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

计算机程序的构造和解释习题3.29

we know that A or B is equivalent to not ((not A) and (not B)) from Using De-Morgan’s rules. the diagram is:


so, the code is:

[plain] view plaincopy
  1. ;;;Exercise 3.29  
  2. (define (or-gate in1 in2 out)  
  3.   (let ((a (make-wire))  
  4.         (b (make-wire))  
  5.         (c (make-wire)))  
  6.     (inverter in1 a)  
  7.     (inverter in2 b)  
  8.     (add-gate a b c)  
  9.     (inverter c out)  
  10.     'ok))  
From the diagram, we can get that :

the delay time of or-gate = the delay time of and-gate + the delay time of inverter * 2。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值