Home > Libraries > DISCRETE_LIB library
DISCRETE_LIB library
General description
The purpose of this library is to demonstrate how to model systems with behaviour based on discrete events. The demonstration consists in the modelling of a digital electronic system.
For this library a series of ports and components have been developed which represent a few characteristic elements of the digital circuits, such as pulse generators, frequency modifiers, etc.
Palette of symbols
Ports description
- DigitalPort: This port type represents logic type signals.
Components description
- Clock: Represents a pulse generator of a determined period.
- Reset: Represents an element whose output enables the digital components of a circuit to be restarted.
- T_flip_flop: Represents a flip-flop element whose output "po" is the results of refusing input "pi" synchronously with the "clock" signal and with a given delay. This element includes a "reset" port to start the component.
Discrete example
Counter
This model represents a clock with three "bits" which can be used as a frequency divider. Given an input signal with frequency "f", by means of a "clock" element frequencies "f/2", "f/4" and "f/8" are generated from the instant the start signal is given by the "reset" element.
For this example, the 20-second model has been integrated into an experiment "exp1" in which we can see the start signal of the "reset" element (which is generated by the "clock" element) and how it is processed by the flip-flops which, successively dividing the frequency by two, give a frequency signal "1/8" of that of the "clock" with the corresponding start time.


