Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (632.87 KB, 10 trang )
<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1>
<b>AsmL</b> is a language for modelling the <b>structure</b>
and <b>behaviour</b> of digital systems
<b>AsmL</b> can be used to faithfully capture the
abstract structure and step-wise behaviour of
any discrete systems, including very complex
ones such as:
An AsmL model is said to be abstract because it
encodes only those aspects of the system’s structure
that affect the behaviour being modelled
<i><b>The goal</b></i> is to use the minimum amount of detail
that accurately reproduces (or predicts) the
behaviour of the system
<i><b>Abstraction</b></i> <i><b>helps</b></i> us reduce complex problems into
manageable units and prevents us from getting lost in a
sea of details
An <b>abstract state machine</b> is a particular
kind of mathematical machine, like the
Turing machine<b> (TM)</b>
But unlike a TM, <b>ASMs</b> may be defined a
very <b>high level of abstraction</b>
The behaviour of a <b>machine</b> (its run) can always
be depicted as a sequence of <b>states</b> linked by
<b>state transitions</b>
paint in green
paint in red
Each state is a particular <b>“configuration”</b> of
the machine
The <b>state</b> may be simple or it may be very
large, with complex structure
But no matter how complex the state might
be, <b>each step</b> of the machine’s operation can
be seen as a <b>well-defined transition</b> from
paint in green
paint in red
We can view any machine’s state as a dictionary of
pairs, called <i>state variables</i>
<b>Names </b>are given by the machine’s symbolic
vocabulary
<b>Values</b> are fixed elements, like numbers and
strings of characters
<i>Diagram shows the run of a machine that models how orders might be </i>
<i>processed</i>
S<sub>1</sub>
Mode = “Initial”
Orders = 0
Balance = £0
Initialise Process All Orders
S<sub>3</sub>
Mode = “Final”
Orders = 0
Balance = £500
S<sub>2</sub>
Mode = “Active”
Orders = 2
Balance = £200
• can be seen as <sub>the result of invoking the machine’s </sub>
control logic on the current state