Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dwarfputers, Part Five: A disscusion of, and ideas, for new, and old, logic.  (Read 636 times)

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile

This thread is for discussing all the points about the current logic systems, as well as suggesting changes/ improvments for them. But also for disscussing the ideas for new and differnent forms of logic.
Logged
if the world were binary all DF fans would be represented by smily faces

soundandfury

  • Bay Watcher
  • Code monkey
    • View Profile
    • Just to the Left of Venus (aka dev-null)

I haven't tried building these yet.  All water sources should be maintained at 7/7.  Unpressured is probably safest.
For construction, you can replace some # by doors and then forbid them.
Beware: S and R both 1 WILL cause undefined behaviour.  Of course that might be what you want...
UPDATE: I tried the clocked SR, it works (albeit very slow FPS), but I think I crossed Q and notQ somewhere, so they're both inverted.  Still, I think this counts as a success!  Zipped region folder at http://www.box.net/shared/9omi4pfe0a

Rising edge astable (useful eg. for clocked SR or D-type flipflop clocks):
Code: [Select]
  ####
 ##^^##
~┼┼++┼.
 ##++##
  ####
~=water source.
┼=doors l to r: EN, Q, P
^=pressureplate l to r: P (6-7), Q (0-1)
.=drainage
This produces a short pulse on Q at intervals.  Also pulses at P halfway in between.

Fast latch gate:
Code: [Select]
1st
###
~c#
###

2nd
####
#^c#
####

3rd
####
++++.
####
1st c=S (hatch)
2nd c=R, ^=Q
Acts as an SR flipflop but without a not-Q output.  Can be used in construction of a clocked SR.

Clocked SR:
Code: [Select]
1st
 ### ### #
~┼c# #c┼~c
 ### ### #

2nd
 ###########
 #^c#c^#^^c#
 ###########

3rd
 ###########
 +++++++++++.
 ###########
left to right:
1st: ┼=S, c=CLK, c=CLK, ┼=R, c=Q1
2nd: ^=Q1, c=Q, c=not-Q, ^=Q2, ^=notQ(0-1), ^=Q, c=Q2
All ^ are 6-7 except where specified (ie. notQ)
« Last Edit: January 12, 2009, 02:37:11 pm by soundandfury »
Logged
It's maths, it must be true!
DF Designer

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile

hmm could possibly need to be moved under cpu/ other units, it depends on the useage you propose for your logic gates its not very abicable here
Logged
if the world were binary all DF fans would be represented by smily faces