Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Level/Byte OR
From Turing Complete
Views
Read
Edit
Edit source
View history
associated-pages
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Infobox level | section = Arithemtic | type = Component | prerequisite1 = Double the Number | unlocks-level1 = Negative Numbers | unlocks-component1 = 8 Bit Or | scored = Yes | highscore = 10 | api-enum-id = byte_OR | api-enum-number = 20 }} In the Byte OR level, your objective is to construct a circuit that can OR together two byte values. To complete this level, you will need eight {{Component|OR|1-bit Or}} gates, as well as ''two'' {{Component|Byte Splitter|Byte Splitters}} and ''one'' {{Component|8 Bit Maker}}. Bitwise logical operations involve separating each byte into its constituent 8 bits, performing the logical 1-bit operation for all eight pairs of bits, and recombining the final result into 1 byte. First, you will want to connect each byte input up to their own byte splitters, so you can start working with each byte as eight discrete bits. To perform the bitwise OR operation, hook each pair up to one ''OR'' component. Specifically, the first ''OR'' component should OR together the first bit of each byte, the second should OR together the second bit of each byte, the third for the third bit of each byte, and so on for all eight bit pairs. Finally, link the output of each connected ''OR'' gate up to the corresponding bit in the 8 Bit Maker component and wire the Maker's output to the level's output.
Summary:
Please note that all contributions to Turing Complete are considered to be released under the Creative Commons Attribution-ShareAlike (see
TuringComplete:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Component
(
edit
)
Template:Ifnotempty
(
edit
)
Template:Infobox level
(
edit
)
Template:Level
(
edit
)
Template:P1
(
edit
)
Template:P2
(
edit
)
Template:Truthtable/styles.css
(
edit
)