Introduction to Simulink with Engineering Applicatioins, Second Edition

This chapter is an introduction to the Logic and Bit Operations Library. This is the fifth library in the Simulink group of libraries and contains the Logic Operations Group Sub-Library, the Bit Operations Group Sub-Library, and the Edge Detection Group Sub-Library blocks shown below. Their functions are illustrated with examples.

The Logic Operations Group Sub-Library contains the blocks described in Subsections 6.1.1 through 6.1.7 below.

The Logical Operator block is described in Section 2.12, Chapter 2, Page 2 20.

The Relational Operator block is described in Section 2.11, Chapter 2, Page 2 19.

The Interval Test block performs a test to determine if a signal is in a specified interval. The block outputs TRUE if the input is between the values specified by the Lower limit and Upper limit parameters. The block outputs FALSE if the input is outside those values. The output of the block when the input is equal to the Lower limit or the Upper limit is determined by whether the boxes next to Interval closed on left and Interval closed on right are selected in the dialog box.
We will create a model with an Interval Test block where the Upper limit parameter is set to the binary value [01111111], the Lower limit is set to the binary value [10000000], and the boxes next to...