- 2072 Ashwin · 6 marks
Levels of abstraction in computer simulation
Short answer
Simulation abstraction levels range from circuit (transistors, accurate but slow) to workload (user jobs, fast but less detail). Intermediate levels include gate, register-transfer (RTL), instruction-set (ISA), and system (queuing model). Lower levels suit hardware design, higher levels suit performance analysis.
Explain the different level of abstraction for the simulation of computer system.
A computer system can be simulated at different levels of abstraction. A lower level shows more detail and is more accurate, but needs more data, effort and run time; a higher level hides detail and is faster. The level is selected by the purpose of the study.
Levels (from low to high)
| Level | What is modelled | Typical use |
|---|---|---|
| Circuit level | Transistors, voltages, currents | Chip design, timing of circuits |
| Gate / logic level | Logic gates, flip-flops, signals | Digital logic verification |
| Register-transfer level | Registers, ALU, buses, clock cycles | CPU design, control unit |
| Instruction-set level | Instructions, registers, memory contents | Testing programs, compilers, ISA |
| Component / system level | CPU, memory, disk, network as service centres | Performance of the whole system |
| Workload / application level | Users, jobs, transactions, requests | Capacity planning, response time |
Explanation
- Circuit and gate level: deterministic, built with HDL and electrical simulators. Not discrete-event in the queueing sense.
- Register-transfer level: models the data path cycle by cycle.
- Instruction level: models execution of machine instructions without the hardware detail.
- System level: uses queueing theory and discrete-event simulation. The CPU, memory and I/O devices are servers with queues; jobs are customers.
- Workload level: describes how users generate load (arrival rate, think time, job mix), and may drive a system-level model.
detail, accuracy, run time high
^ Circuit
| Gate
| Register transfer
| Instruction set
| System (queues)
| Workload low
Choosing the level
- Use a lower level when the design of hardware is being checked.
- Use a higher level to compare scheduling, caching or the number of servers.
- Mixed models may use detail for the component of interest and abstraction for others.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- CPU simulation at lower abstraction level · Simulation and Modeling, chapter 10
- Simulation of computer system serving WWW · Simulation and Modeling, chapter 10 · asked 2×
- Continuous system simulation; analog computer example · Simulation and Modeling, chapter 3
- Define system, model, simulation · Simulation and Modeling, chapter 1
- CPU simulation with example · Simulation and Modeling, chapter 10 · asked 4×
- Abstraction levels of multimedia programming · Multimedia System, chapter 7 · asked 6×
- OS abstraction, extended machine, system call · Operating System, chapter 1
- Typical power system with voltage levels · Power System Analysis I, chapter 1
- Digital system, logic level, BCD vs binary · Digital Logic, chapter 1