Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Level/Counter
(section)
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!
== Optimizations == {{achievement |name=Binary Counter |image=Turing Complete achievement Binary Counter.jpg |description=Complete the Counter level with a 65 gate score or less }} While this circuit works, it is somewhat ineffective. By specializing the used components, it is possible to reduce both the delay and gate scores. The register is being used as a delay line. There is no need to pay for the extra features, so it can be replaced with an actual delay line. Since the 8bit component isn't allowed in this level, use eight 1bit delay lines instead. The second optimization is to special case the adder for the task of incrementing by one. By assuming the hardcoded input of 00000001 and looking at individual full adder implementations it becomes obvious that many gates are pointless. The ones bit always toggles, so a simple bit inverter can be used. The twos bit toggles if the ones bit was set. This can be generalized as a bit toggling only if all previous bits were set. A simple chain of AND gates can be used to detect which bits need to be toggled. [[File:Turing Complete Counter Optimized.png]] {{Footer Nav|game=Turing Complete|prevpage=Little Box|nextpage=Arithmetic Engine}}
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)