Skip to main content Accessibility help
×
Hostname: page-component-cd9895bd7-gxg78 Total loading time: 0 Render date: 2024-12-19T05:51:19.717Z Has data issue: false hasContentIssue false

6 - Simulation algorithms

Published online by Cambridge University Press:  05 June 2012

John B. Gosling
Affiliation:
University of Manchester
Get access

Summary

Introduction

There are two approaches to simulation.

  • Simulate for functional correctness, ignoring all timing considerations, and then use a timing verifier to check that time constraints are met.

  • Simulate in an environment in which the models include timing. As one can never guarantee that all paths through the logic have been exercised, it may still be advisable to use a timing verifier.

The simplest approach to simulation is to have a separate procedure for every logical element in the network being simulated, and the connections between the elements are then mirrored in the structure of the machine code of the program. The entire structure of the network is thus mirrored in the store of the machine doing the simulation. This takes up a great deal of storage space, but is very fast in running, since there are no lengthy lists to be searched and manipulated.

The amount of storage can be reduced by having only one procedure for each element type, and a small amount of storage for every element holding the element-specific data. In the previous description there is a copy of the procedure for every element which uses it and hence no procedure entry and exit as such. With only one copy each procedure requires a call. Procedure calls need machine states to be saved temporarily and restored on exit. This is expensive in CPU resources.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1993

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Simulation algorithms
  • John B. Gosling, University of Manchester
  • Book: Simulation in the Design of Digital Electronic Systems
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139170376.007
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Simulation algorithms
  • John B. Gosling, University of Manchester
  • Book: Simulation in the Design of Digital Electronic Systems
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139170376.007
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Simulation algorithms
  • John B. Gosling, University of Manchester
  • Book: Simulation in the Design of Digital Electronic Systems
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139170376.007
Available formats
×