Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- INITIAL IMAGE DIRECTION/ROTATION/WHATEVER ITS CALLED
- --(w0)--|-----\
- --(w1)--| NAND |o--(w0)
- --(wN)--|-----/
- keywords (cant use these as variable names):
- begin, basic, signal, sim_scale, sim_pos,
- sim_hook, if, else, end, high, low, is,
- input, output
- signal <name> : <type> where type is:
- *** if only name is given no diode is inserted * **
- input: diode allowing current to flow to item
- output: diode allowing current to flow out of item
- sim_scale <mm> where mm is:
- the relation of one unit to mm (default 10mm, or 1cm)
- */
- begin basic NPN
- signal base;
- signal clct;
- signal emit;
- sim_scale 10
- sim_pos base 0,1 1,1
- sim_pos clct 2,2 1,1
- sim_pos emit 2,0 1,1
- sim_hook tick
- if high(base)
- emit is clct;
- else
- emit is low;
- end
- end
- end
- being basic NAND_2
- signal in0;
- signal in1;
- signal out0;
- sim_hook tick
- out0 is high;
- if high(in0)
- if high(in1) // in1 & in2
- out0 is low;
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement