Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Logic gate mechanisms?  (Read 1221 times)

Draco18s

  • Bay Watcher
    • View Profile
Re: Logic gate mechanisms?
« Reply #15 on: November 17, 2007, 02:52:00 pm »

The only problem I can see with this kind of computing technology is that it really needs the old-style floods to be decent.
Logged

Anticheese

  • Bay Watcher
    • View Profile
Re: Logic gate mechanisms?
« Reply #16 on: November 17, 2007, 04:45:00 pm »

Not really, with a river/aquifer and a bit of creative digging it is possible to create a massive multilevel spanning water tank and then use that as the source for all your computing needs.

To simulate a (very slow) keyboard, you could lock a dwarf in each room with the control levers and use a hotkey program to get them to pull the lever.

I have to say that this looks excellent! The only problem I can see is this:

quote:
L..Look at you miner. A p-pathetic creature of meat and bone, panting and sweating as you run through my tunnels. How can you challenge a perfect, immortal machine?
Logged
Why not join us on IRC? irc.newnet.net #bay12games

PresidentEvil

  • Bay Watcher
    • View Profile
Re: Logic gate mechanisms?
« Reply #17 on: November 17, 2007, 07:52:00 pm »

"I'm sorry, Urist, I cannot do that."
Logged
I will mod in plastic as a resource.  I will then tweak the Dwarven civ entry so that coins are only made out of plastic, and are called "credit cards".
I will make dwarves purchase things with bushels of credit cards.  It will be a mockery of both systems.
It will be stupid.  But it will be gloriously stupid.

slimtim

  • Bay Watcher
    • View Profile
Re: Logic gate mechanisms?
« Reply #18 on: November 18, 2007, 07:12:00 am »

well i already made a design for a 4 bit binary adder it works in the three layer style someone on this forum came up with.
you have three layers: a layer filled with water with gates in the middle, a layer beneath that with pressure plates surounded by grates, an beneath that a basin for the drain water wich can be pumped back up
the design looks like this:
code:

# wall
F floodgate
D drawbridge
O grate in the floor with a pressure plate under it
P a oressure plate
X just a drain
you need two input banks( A and B) wich can be filles with lever like this
1 2 3 4
#F#F#F#F#<- these can be opened with levers to fille the slots
#D#D#D#D#<- get closed by the counter
# # # # #
# # # # #
# # # # #
#F#F#F#F#<- get opened by the counter
#O#O#O#O#<- these are connected to the adder input
#########

then you have the counter whis controls the input banks.
########## #####
FB      O# FPFX#< the first floodgate is connected to the start lever
########## ##### the presure plate to the floodgate of the next row and the flood-
gate to the right and the input bank and the read gate of the memory
the next Presure plate is connected to the bridge and the last floodgate to the reset lever
this is repeated 4 times
then the adder memory
#F#<the write gate gate
# #
# #
#F#< the read gate
#O#< to the adder
###
the display memory
#F##F##F##F#<these are opened by the counter
#F##F##F##F#<write
# ## ## ## #<the display enpty=0 full = 1
#F##F##F##F#< this one is connected to the reset lever
#X##X##X##X#
############

and finaly the adder
the adder has three inputs( from A, from B and form the memory)
#F#F#< connected to A    
#F#D##< to the mem.  
#O#ODF< A,Mem        
######              

 #F#<B                
 # #                  
#F# #<B                    
#F#D##<Right output from the previous one
#O#ODF<B,and prev.
######
bothe the left outputs go to the memory write
and the second goes to the display memory
 



and thats it, i havent tested it yet but i am planning to do so in my current fort
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Logic gate mechanisms?
« Reply #19 on: November 18, 2007, 02:10:00 pm »

P = Power Source a high pressure source of water.
D = Drain a hole to another layer where you can rid yourself of water.
I = input
S = switch
B = brige
F = floodgate
O = output
. = channel
# = wall

Note that output channels are generally ill advised as power sources, power sources should flow directly from a high pressure water source.
This assumes that a 1 tile drawbidge can act as an inverse flood gate...
Note that I have not tested these.

code:

AND
#I#P#I#
#S#F#S#
#D#F#D#
###O###

OR
#I#I#P#
##S##F#
#D###.#
#####O#

NOT
#I#P#
#S#B#
#D#.#
###O#

NAND
#I#P#I#
#S#B#S#
#D#B#D#
###O###

NOR
#I#I#P#
##S##B#
#D###.#
#####O#

XOR
#I##P##I#
#S#B#F#S#
#D#F#B#D#
####O####



This one is a wee bit more complicated...
the left switch is linked to the topmost bridge and floodgate. when triggered it opens the rightmost channel and closes the left most channel.
the right switch is linked to the bottom most bridge and floodgate, when triggered it opens the leftmost channel and closes the rightmost channel.
issue:timing, if inputs are not syncronized, some leakage may occure due to lacking a clock pulse mechanism.

A clock pulse mechanism could be achieved by placing flood gates above the inputs and linking all those floodgates to a switch. The problem then arrises that you must wait for all the water to drain from the elements before triggering that mechanism again. I know of no good way to automate this task.

One advantage of all these systems is that the distance from input to drain is the same in all cases. The distance from power to output is the same in all cases.

[ November 18, 2007: Message edited by: Nadaka ]

Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

I3erent

  • Bay Watcher
  • The mounted dwarf has gone bErZeRk
    • View Profile
Re: Logic gate mechanisms?
« Reply #20 on: November 19, 2007, 11:47:00 am »

**peeks in**  you nerds!
Logged
quot;I got really stoned a couple days ago and ended up talking to THIS GUY. anyway... I''m really drunk now. The guy said: There is this application called "Mya" MI-AH that makes animations of people that he paid $2000 for. F- that Jazz ARMOK ROCKS. FIGHT THE MAN, GO TEAM!
Pages: 1 [2]