Discrete Event Simulation & VHDL Prof. K. J. Hintz Dept. of Electrical and Computer Engineering George Mason University.

Slides:



Advertisements
Similar presentations
+ Validation of Simulation Model. Important but neglected The question is How accurately does a simulation model (or, for that matter, any kind of model)
Advertisements

Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Outline input analysis input analyzer of ARENA parameter estimation
Experimental Design, Response Surface Analysis, and Optimization
STAT 497 APPLIED TIME SERIES ANALYSIS
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
Chapter 20 Basic Numerical Procedures
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Chapter 7 Sampling and Sampling Distributions
Discrete Event Simulation How to generate RV according to a specified distribution? geometric Poisson etc. Example of a DEVS: repair problem.
Dr. Turki F. Al-Somani VHDL synthesis and simulation – Part 3 Microcomputer Systems Design (Embedded Systems)
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
Lecture 9 Output Analysis for a Single Model. 2  Output analysis is the examination of data generated by a simulation.  Its purpose is to predict the.
Variance Reduction Techniques
G. Cowan Lectures on Statistical Data Analysis 1 Statistical Data Analysis: Lecture 8 1Probability, Bayes’ theorem, random variables, pdfs 2Functions of.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Statistics and Probability Theory Prof. Dr. Michael Havbro Faber
1 10. Joint Moments and Joint Characteristic Functions Following section 6, in this section we shall introduce various parameters to compactly represent.
Principles of the Global Positioning System Lecture 10 Prof. Thomas Herring Room A;
1 H ardware D escription L anguages Basic Language Concepts.
Simulation Output Analysis
Gaussian process modelling
Simulation II IE 2030 Lecture 18. Outline: Simulation II Advanced simulation demo Review of concepts from Simulation I How to perform a simulation –concepts:
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
 1  Outline  stages and topics in simulation  generation of random variates.
IAY 0600 Digitaalsüsteemide disain Event-Driven Simulation Alexander Sudnitson Tallinn University of Technology.
Random Sampling, Point Estimation and Maximum Likelihood.
Lecture 12 Statistical Inference (Estimation) Point and Interval estimation By Aziza Munir.
Monte Carlo Simulation CWR 6536 Stochastic Subsurface Hydrology.
University of Ottawa - Bio 4118 – Applied Biostatistics © Antoine Morin and Scott Findlay 08/10/ :23 PM 1 Some basic statistical concepts, statistics.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
From Theory to Practice: Inference about a Population Mean, Two Sample T Tests, Inference about a Population Proportion Chapters etc.
Lecture 19 Nov10, 2010 Discrete event simulation (Ross) discrete and continuous distributions computationally generating random variable following various.
Chapter 4 Stochastic Modeling Prof. Lei He Electrical Engineering Department University of California, Los Angeles URL: eda.ee.ucla.edu
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
Basic Numerical Procedures Chapter 19 1 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull 2008.
Chapter 5 Parameter estimation. What is sample inference? Distinguish between managerial & financial accounting. Understand how managers can use accounting.
1 Chapter 9 Detection of Spread-Spectrum Signals.
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Electrical and Computer Engineering University of Cyprus LAB 1: VHDL.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 2 Fundamental Simulation Concepts
Reid & Sanders, Operations Management © Wiley 2002 Simulation Analysis D SUPPLEMENT.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Mean, Variance, Moments and.
(1) Basic Language Concepts © Sudhakar Yalamanchili, Georgia Institute of Technology, 2006.
Network Simulation Motivation: r learn fundamentals of evaluating network performance via simulation Overview: r fundamentals of discrete event simulation.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Monte-Carlo based Expertise A powerful Tool for System Evaluation & Optimization  Introduction  Features  System Performance.
1/8/ L16 Timing & Concurrency III Copyright Joanne DeGroat, ECE, OSU1 Timing & Concurrency III Delay Model foundations for simulation and.
Digital Control CSE 421.
Introduction to discrete event systems
Joint Moments and Joint Characteristic Functions.
Statistics Sampling Distributions and Point Estimation of Parameters Contents, figures, and exercises come from the textbook: Applied Statistics and Probability.
STA347 - week 91 Random Vectors and Matrices A random vector is a vector whose elements are random variables. The collective behavior of a p x 1 random.
IAY 0600 Digital Systems Design Event-Driven Simulation VHDL Discussion Alexander Sudnitson Tallinn University of Technology.
Simulation. Types of simulation Discrete-event simulation – Used for modeling of a system as it evolves over time by a representation in which the state.
Auburn University
Digital Control CSE 421.
OPERATING SYSTEMS CS 3502 Fall 2017
HDL simulation and Synthesis (Marks16)
Some General Concepts of Point Estimation
Sampling Distributions and Estimation
Introduction Introduction to VHDL Entities Signals Data & Scalar Types
Timing Model Start Simulation Delay Update Signals Execute Processes
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing Data Partition Dr. Xiao Qin Auburn University.
Sample Mean Distributions
Objective of This Course
Performance evaluation of manufacturing systems
Presentation transcript:

Discrete Event Simulation & VHDL Prof. K. J. Hintz Dept. of Electrical and Computer Engineering George Mason University

Discrete Event Simulation Material from VHDL Programming with Advanced Topics by Louis Baker, Wiley, 1993

Discrete Events Simulation (DES) & VHDL VHDL is a special case of DES Not continuous differential equation Not finite difference equation DES is discontinuous in time DES is discontinuous in time This is efficient for various systems of big importance: This is efficient for various systems of big importance: Microprocessor/microcontroller Finite State Machine Language Recognizer Clocked/synchronous devices in general

Discrete Events Simulation Properties Restricts Allowed Values of Signals Restricts Transitions to the Result of Events, i.e., It Is Causal

Why discuss DES? Understanding Leads to Better and More Efficient Use of Simulation Queuing of Transactions May Not Reflect Reality: Due to Inertial Delay Due to Transport Delay Not All Simulations Will Be Deterministic This is because of: Interrupts Instruction Mix Intermediate values causing branching

Two Approaches to DES Event Scheduling Simulation proceeds from event to event This is used in VHDL Process Interaction Follows customer through system Suitable for queuing systems This is used in SIMULA language

Queues Events Ordered in Time Many deletions of events from Queue may be expected This is due to the Default Inertial Delay

Queues Each driver must maintain Projected Waveform Time and value of most recent event ( s'last_event ) Next scheduled transaction When event occurs, value before event must be saved ( s'last_value ) Event time ( s'last_active )

Queues History of Signals is NOT maintained by simulation History of signals is saved in History File Access is only available implicitly

Efficient Simulation Finite Propagation Delay versus Delta Delay Finite delay more accurately reflects world. But finite delay requires simulation to check each different delay time, therefore slow A  -delay only needs to resolve signals after one  -delay, therefore faster If all components had same delay, then no difference between finite delay simulation and delta simulation

Efficient Simulation Limit Use of INOUT Ports Use Only When Essential Usage Limits Error Checking Associated With Port Modes Simulation Must Resolve Direction

Efficient Simulation Limit Use of Generics Generic statements require global storage Minimize Feedback The more Layers of Feedback there are, the more Simulations are needed to resolve the output at its next state

Internal Event Queues Necessary to Simulate Interaction With Outside World Signals Cannot Be Used Because They Can't Represent External Events Put on a Queue VHDL Allows Coding Your Own Event Queues

Simulation Determinism Deterministic Microprocessor with no interrupt doing well- defined task, e.g., boot-up sequence, MSDOS start for x86 All inputs to a combinational circuit

Stochastic Simulation More Common Economic Simulation Truly random #: derived from physical process Pseudo-random: Generators uniform, zero mean, unit variance All other generators can be computed from this

Stochastic Simulation Random Variables Empirical: fit to data Component failure, Weibull No justification, however fits data and easy to manipulate Function of known distribution Central limit theorem, summation of large number of RV approaches Gaussian Maximum of a number of RV's: Gumbel Distribution

Stochastic Simulation Variance Reduction Techniques The greater the variance in results, the less certain we are of their validity. There is a square root of N improvement in variance with N, but not very efficient

Stochastic Simulation Correlated Sampling Vary design, but use same pseudo-random sequence of inputs If 2 designs are equally effective, then the simulation results should be very similar

Stochastic Simulation Correlated Sampling Suppose Independent RVs are used to compare 2 designs and P 1 and P 2 are performance measures then a figure of merit, D= P 1 - P 2 has variance That is, the more similar the RVs are, the smaller is  d

Stochastic Simulation Antithetic Variables Simulate using U s (0,1) RV and save value Generate new sequence based on old by 1-U 1, 1-U 2, etc. If U s were particularly good sequences then you might expect 1-U s to be particularly bad sequences

Stochastic Simulation Stratified Sampling Subdivide sample space into groups with minimum variance, e.g, computer instruction set distribution associated with business applications distribution associated with scientific applications

Stochastic Simulation Importance Sampling Devote more simulation runs to the sets of inputs which have greater variance Assures that enough "rare" events occur to make sound statistical inferences

Stochastic Simulation Sequential Analysis Adaptively modify sampling sequence, e.g., simulation fails when one bit is set so only test all variations with that bit set

Stochastic Simulation Initialization May take long time for startup transients to converge to steady state behavior Analyze transient behavior separately Initialize near steady state values for subsequent analysis

System Stressing Often interested in degradation characteristics under increasing load Catastrophic failures Graceful degradation Disable certain services to simulate their being fully occupied and not available

Simulation Validation Run simple cases for which results are known or calculable and compare results Perturb parameters to perform sensitivity analysis Fisher's Law: The more optimized a system is for one environment, the worse it will do in another Monte-Carlo: large # of runs, average results

Concurrent Simulation Optimistic Run parts concurrently but only check interaction at large time intervals. If an event occurred, backtrack Conservative Each parallel process proceeds no further than it can without the possibility of backtracking