mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
Added medium syndication metadata
This commit is contained in:
parent
a51e20fbc7
commit
a22bb998cb
14 changed files with 78 additions and 68 deletions
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
title: "Comparator Logic Gate"
|
||||
date: 2021-06-18T01:09:45-04:00
|
||||
date: 2021-06-18 05:09:45
|
||||
draft: false
|
||||
tags: []
|
||||
math: true
|
||||
medium_enabled: true
|
||||
medium_post_id: 7bbc125ead40
|
||||
tags: []
|
||||
title: Comparator Logic Gate
|
||||
---
|
||||
|
||||
This post is heavily derived from the Wikipedia post on [Digital Comparators](https://en.wikipedia.org/wiki/Digital_comparator) and therefore can be distributed under the Creative Commons Attribution-ShareAlike 3.0 license.
|
||||
|
@ -52,4 +53,4 @@ The only way for this to evaluate to true is if A is 1 and B is 0. That is $(A >
|
|||
To compare an entire bitstring, we start from the most significant bit and check to see if one bit is greater than the other. If not, it will then check the next bit while confirming that all the previous bits were the same. For a 3-bit comparator, the logic will look like the following:
|
||||
$$
|
||||
(A_3A_2A_1 > B_3 B_2 B_1) \equiv A_3\bar{B_3} + \overline{(A_3 \oplus B_3)}A_2\bar{B_2} + \overline{(A_3 \oplus B_3)}\overline{(A_2 \oplus B_2)}A_1\bar{B_1}
|
||||
$$
|
||||
$$
|
Loading…
Add table
Add a link
Reference in a new issue