TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 std_logic va... std_logic lo... switches basic gates hex-switch clock generator two-phase clock resolution f... wired-AND demo detectors an... gatelevel circuits delay models flipflops adders and arithm... counters LFSR and selftest memories programmable logic state-machine editor misc. demos I/O and displays DCF-77 clock relays (switch-le... CMOS circuits (sw... RTLIB logic RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | Interactive switches
Circuit Description
This circuit demonstrates the input switches used to generate input
values to other Hades simulation components during interactive simulation.
Each of the switches is connected to a LED, used to show the
current output value of the switch, while the timing diagram on the right
side illustrates the behaviour of the switch.
As long as the simulation is running,
you can use mouse clicks to toggle the switch output values.
The most important input switch is called Ipin (that is, 'input pin').
At the start of the simulation, every Ipin component automatically generates
a user-settable fixed output value.
The default ouptut value is U (undefined),
but this can be changed via the Ipin property sheet.
The first mouse click on an Ipin will change its output value to
0 .
After that, each subsequent left button mouse click toggles the
output value between the values 1 and 0.
However, if you hold down the SHIFT-key while clicking the left mouse button,
the Ipin will also generate the values Z (tri-state)
and X (undefined).
The next switch is IpinLarge, an Ipin with a bigger graphical symbol.
This component is sometimes useful in large schematics, because it
is somewhat easier to hit with the mouse.
Each mouse click on a PulseSwitch component generates a 1-pulse
of fixed duration, after which the output value returns to its default
value of 0. The pulse duration can be specified via the property sheet.
Note that you can connect an inverter to the pulse switch in order
to generate 1-0-1 instead of 0-1-0 pulses.
A PowerOnReset component automatically generates a fixed
sequence of the output values X-0-1 at the start of the simulation,
where the timing parameters can be specified via the property sheet.
However, once the initial reset sequence is finished,
you can also use a PowerOnReset component as a normal input switch;
each mouse click will toggle the output value between 0 and 1.
For reference, the Java class names of the input switches are
hades.models.io.Ipin,
hades.models.io.IpinLarge,
hades.models.io.PulseSwitch,
and hades.models.io.PowerOnReset.
| |||
Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/00-intro/05-switches/switches.html |