A-level 计算机科学学习记录:逻辑电路基础(logic gate)

Introduction

logic gate are the basis of a computer hardware. Without the invention of logic gate, computers can't be designed... not even any electronic devices. A logic gate only produces one output but can have multiple inputs. It processes the input boolean value(s) by a logical operation such as AND, OR, NOT, XOR and so on.

Be careful! Boolean circuit wise, when we say "give an value", it means that the logic gate produces a TRUE value. Because logic True and logic False are physically represented by voltage - no or low voltage is False (0), and high voltage indicates True (1). So give an value means "high voltage".

In the article, we will use 1s / 0s, high / low voltage, and give an value / not give an value interchangeably. Also, the website that we use to show logic gate is: Logic.lyhttps://logic.ly/demo/ you can have a play with it.

basic gates

AND gate

 what is logic AND? It gives an value only when both inputs are true, which means that only for input 1, 1 it produces 1. For example, you say: I own a extravagent mansion AND I am paid 100,000 pounds annually. So only when both conditions are satisfied, you statement is true.

OR gate

waht is logic OR? the logic gate produces 1 when at least one of the two (multiple) inputs is true, which means that for 0,1 or 1,0 or 1,1, the gate will produce a true value. For example, you tell a fairy: I want a high salary or a big house. She only needs to realise at least one of your wishes.

NOT gate

A NOT gate is very simple. for any value inputed, the gate gives the reversed output.

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值