1 module Inverter (main) where
5 main = Sim.simulate inverter [High, Low, High, Low] ()
6 mainIO = Sim.simulateIO inverter ()
8 type InverterState = ()
9 inverter :: Bit -> InverterState -> (InverterState, Bit)
10 inverter a s = (s, hwnot a)
12 -- vim: set ts=8 sw=2 sts=2 expandtab: