Three major components are required to implement a digital system:
- combinational logic
- memory elements
- clock signals
HLC expressions are shown below the gates for the operator in C: &&
, ||
, !
.(Don't mixed the bit operation &
, |
, ~
in C).
Practices:
- A case expression has the following general form:
[
select1: expr1;
select2: expr2;
selectn: exprn;
]
Unlike switch
statement in C, we don't require the different selection expressions to be mutually exclusive. Logically, the selection expression are evaluated in sequence, and the case for the first one yielding 1 is selected.
For example, the second selection expression is simply 1, indicating that this case should be selected if no prior one has been.
word Out = [
s: A;
1: B;
]
- The form set membership test is:
iexpr in {iexpr1, ..., iexprk}
Practices: