Professional Documents
Culture Documents
com
.
Variables (named data entities)
Memory or registers location.
Q.6. What is problem description model and what are its parts?
PARTS:
Style: The problem description style specifies how the problem in a particular
computational model is described. It has two types:
1. Procedural Style: In this style the algorithm for solving the problem is stated.
2. Declarative Style: In this style all the facts and relationships relevant to the given
problem have to be stated. It also has two ways i.e. using functions (methods) or
predicates (conditional structure).
Method: The problem description method specifies what will be the method that will be following to solve
the problem. It also has two types:
1. Solution
Based: this method states how the solution of the problem is to be described. E.g.,
Von Neumann Model solution lies in the sequential execution of instruction
expressing an appropriate algorithm.
2. Problem
Based: it specifies how the problem is to described e.g. applicative model problem is
represented set of function which express relationships and facts pertaining to the
problem.
3. Control of the execution sequence: it specifies that how the execution will be
controlled. It has also three types:
Control-driven: it is assumed that there exists a program consisting of a
sequence of instruction.
⇒ Implicit execution sequence.
www.InfoFanz.com
www.InfoFanz.com
Ans.
COMPUTATIONAL MODEL
Using Using
Functions Predicates
State Reduction SLD
Dataflow Semantics
Transition Semantics Resolution
semantics Semantics
Control
driven Data Demand
driven driven
Ans. BUS:
www.InfoFanz.com
www.InfoFanz.com
Usually broadcast.
Often grouped.
o A number of channels in one bus.
o E.g. 32 bits data bus is 32 separate single bit channels.
Power lines may not be shown.
Ans. PROGRAM:
A sequence of steps.
For each step arithmetic or logical operation is done or data movement is done.
Ans. SEMAPHORES:
Kernel forms the data structure for each section and that data structure is called
semaphores.
www.InfoFanz.com
www.InfoFanz.com
Q.15. What are the concepts of computational model, programming language & architecture explain
with the help of diagram?
Ans. Every computational model uses two things one are programming language and the other is
corresponding computer architecture. Programming language is the specification part and
computer architecture is the implementation part.
Execution
Ans. ADVANTAGES:
It can be easily implemented.
DISADVANTAGES:
Sequential in nature.
History sensitive.
o Not referentially transparent.
o Side effect.
www.InfoFanz.com
www.InfoFanz.com
Computation model
Corresponding programming language
Corresponding architecture
www.InfoFanz.com
www.InfoFanz.com
Semaphores
Signals
Events
Queues
Barrier synchronization.
Granularity
Complexity of the items of computation
Size
Fine-grained (e.g. Assembly)
Middle-grained
Coarse-grained (e.g. High-level language)
Typing
Data based type ~ Tagged
Object based type (object classes)
Ans. TYPED: which are declared variable with specific data type for example in C/C++, Java, VB and
so on.
Strongly typed: when you declare any variable and you give wrong input it will give
error.
Weakly typed: languages in which errors are not normally generated.
UNTYPED: which are not declared variable with specific data types for example in GWBasic.
TAGGED ARCHITECTURE: those architectures in which variables are tagged are called ‘tagged
architectures’.
PREFETCH: it is a technique, which you use to do more instructions at the same time.
SOME ABBREVIATIONS:
VLSI - Very Large Scale Integration.
SISD - Single Instruction Single Data Stream.
SIMD - Single Instruction Multiple Data Stream.
MISD - Multiple Instruction Single Data Stream.
MIMD- Multiple Instruction Multiple Data Stream.
CMOS – Component Metal Oxide Semiconductor
CISC - Complex Instruction Set Code
RISC – Reduced Instruction Set Code
SFI – Set Flag Interrupt
CLI – Clear Flag Interrupt
MAR – Memory Address Register
MBR – Memory Buffer Register
www.InfoFanz.com
www.InfoFanz.com
CHAPTER #2
Ans.
Computer architecture
Underlying computational model
o Von Neumann, dataflow, …
Level of consideration
o Micro machine, processor, computer system
Scope of interest
o Functional specification, implementation
Abstract Architecture Concrete Architecture
Programming Model Hardware Model
Logical Design Physical Design
Registers, EU Circuits, Signals
Interconnections Interconnections
Ops, MicroInst, Inst Associated Signals
P
www.InfoFanz.com
C
www.InfoFanz.com
APPLICATION
PROGRAMS
User OPERATING
Interface SYSTEM I/O CONTROLLER
Q.6.
DATA CARRIER
Ans.
The design space and its representation Using DS-trees
B C
B C
A “can be executively
performed by” B or C
B C
www.InfoFanz.com