Modeling comparators using analog events in VerilogA

Electrical circuits often requires handling of events shown at the circuit input. VerilogA provides a simple way to manage them.