TAILIEUCHUNG - Model-Based Design for Embedded Systems- Part 14

Model-Based Design for Embedded Systems- P14: This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. | 96 Model-Based Design for Embedded Systems extended with integer variables and richer user-defined data types. A timed automaton is a finite-state machine extended with clock variables. The tool uses a dense time-model of time so clock variables evaluate to real numbers. All the clocks progress synchronously. We use in this section the train-gate example distributed with the tool . It is a railway system that controls access to a bridge. The bridge has only one track and a gate controller ensures that at most one approaching train is granted access to this track. Stopping and restarting a train takes time. Figure shows the model of a train in the editor of Uppaal. When a train is approaching Appr it must be stopped before 10 time units otherwise it is too late and the train must cross the bridge Cross . When it is stopped Stop it must be restarted Start before crossing the bridge. The timing constraints associated with the locations are invariants. They give a bound on how long these locations can be active A train can stay in Appr at most 20 time units and then must leave this location. Edges between locations have guards x 10 to constrain when they can be taken synchronizations stop id for communication and updates x 0 to reset the clock x. Automata communicate with each other by means of channels. Here we have an array of channels and every train has its own id. The gate automaton selects a train and synchronizes with it with stop id . In Uppaal it is possible to declare arrays of clocks or any other type. Channels can be declared to be urgent to prevent delays if a synchronization is possible or broadcast to achieve broadcast synchronization instead of handshake. Listing shows the global declaration of the model with the channel FIGURE View of the train template in the editor. Model-Based Framework for Schedulability Analysis Using Uppaal 97 Listing Global declarations for the train-gate model. 1 const int N 6 Number of trains 2 typedef int

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.