Questions tagged [computer-architecture]
Questions about the organization and design of computer hardware.
1,103
questions
4
votes
1
answer
110
views
Is there an affordable experiment which shows chips can't get much smaller? [closed]
If I am correct, chips cannot get much smaller because of Heisenberg's uncertainty principle. My friend and I want to perform an experiment (which is cheap, i.e. doesn't require million-dollar ...
6
votes
1
answer
348
views
Realtime hardware/software versus PC software/hardware, how are these distinct and alike?
This question stems from a few answers and comments on a question I posted in signal processing found here.
I guess I am a little confused. Are there any concrete differences between realtime ...
2
votes
1
answer
2k
views
How to evaluate the clock cycle for MIPS single cycle CPU
The Situation
I'm trying to read the book 'Digital Design Computer Architecture'.
In the part of Performance Analysis(7.3.4 in the book), Author refers to clock cycle for MIPS single cycle processor. ...
6
votes
3
answers
5k
views
Finding cache block transfer time in a 3 level memory system
Following question was asked in one of entrance exams for a graduation programme. Please help me try to solve it :
A computer system has an L1 cache, an L2 cache, and a main memory
unity connected as ...
8
votes
2
answers
22k
views
Changing from Kernel mode to User mode (and vice versa)
I am reading Operating Systems book by Galvin. Galvin explains, what are kernel & user modes, instruction privileges given for both modes & also about mode-bit. But I am interested to know how ...
3
votes
1
answer
282
views
Why we need EEPROM in this micro-controller
PIC16F887 Block Diagram
According to the block diagram above, since we already have Program Memory, which may be used to store our program, why should we still need EEPROM? What is it for?
3
votes
2
answers
3k
views
Finding hit ratio of a cache
Consider an array A[100] & each element occupies 4 word. A 32 word cache is used and divided into 8 word blocks. What is the hit ratio for the following statement. Assume one block is read into ...
8
votes
1
answer
22k
views
What is the exact difference between a latch & a flipflop?
From what I have understood :
A Flip Flop is a clocked latch i.e. flip flop = latch + clock
Latch continuously checks for inputs & changes the output whenever there is a change in input
Flip Flop ...
4
votes
3
answers
5k
views
How DMA improves I/O operation efficiency?
I am reading Computer Architecture & Organization by William Stallings to understand I/O operations. Stallings pretty well explains why Programmed I/O (CPU keeps checking the I/O module register ...
2
votes
2
answers
389
views
Computer Architecture-3 level RAM hierarchy
In all computer architecture books we study that Cache memory could be divided into 3 levels (L1,L2 and L3) and its very beneficial to do so. Why don't we use the same approach in case of main memory (...
5
votes
1
answer
3k
views
Perfect shuffle in parallel processing
How is Perfect shuffle a better interconnect scheme for parallel processing? For example if we consider a problem of sum reduction, I want to understand how this scheme is useful when implementing sum ...
-1
votes
2
answers
2k
views
Network modem question
How would I solve the following can anyone help me.I know MIPS is basically how many instruction the processor can do per second but what should I do?
Assume that we are receiving a message across a ...
5
votes
5
answers
3k
views
Does any CPU not contain an ALU?
Is there any kind of CPU which doesn't contain an ALU ?
2
votes
1
answer
7k
views
Fastest mode of data transfer
Which of the following modes of data transfer is the fastest?
a. DMA
b. Interrupt-based
c. Polling
d. All are equally fast
I do not have the answer, so I cannot check, that's why I am posting ...
4
votes
2
answers
1k
views
Time units required for Interrupt Cycle
I am reading William Stallings Computer Organization & Architecture to understand about control unit & micro-operations.
Stallings explain that interrupt cycle requires 3 time units to ...
11
votes
3
answers
4k
views
CPU Cache is managed by which software component?
CPU caches are used by exploiting temporal and spatial locality. My question is who is responsible for managing these caches? Is this Operating system that identifies a particular access pattern and ...
0
votes
0
answers
36
views
Mean time to failure calculation help [duplicate]
Given this formula how do you calculate the following? I don't understand, can some one explain?
...
2
votes
2
answers
3k
views
What is the system's mean time to failure?
I have the following homework problem:
A 10 TB disk drive has an MTTF of 6,000,000 hours. How much data can we store in a system comprised of these disks, if we want the system MTTF to be at least 1....
7
votes
4
answers
32k
views
The amount of ROM needed to implement a 4-bit multiplier?
For a 4-bit multiplier there are $2^4 \cdot 2^4 = 2^8$ combinations.
The output of 4-bit multiplication is 8 bits, so the amount of ROM needed is $2^8 \cdot 8 = 2048$ bits.
Why is that? Why does ...
1
vote
4
answers
2k
views
Does the write through cache copies the whole block or just the byte which is updated?
Just a basic question to ask
Does the write through cache copies the whole block or just the byte which is updated?
I went through the following question
Array A contains 256 elements of 4 bytes ...
2
votes
1
answer
1k
views
Where do these DRAM row/column calculations come from?
Let r be the number of rows in a DRAM array, and c be the number of columns.
Apparently, DRAM with organization 16x1 requires least pins when r = c = 4 because fewer address bits are required to ...
11
votes
2
answers
3k
views
Theoretical minimum number of registers for a modern computer?
I took a course on compilers in my undergraduate studies in which we wrote a compiler that compiles source programs in a toy Java-like language to a toy assembly language (for which we had an ...
1
vote
1
answer
541
views
categories of registers and and storage in them
The Wikipedia article on processor registers mentions:
Address registers hold addresses and are used by instructions that indirectly access primary memory.
Which addresses does this sentence refer ...
40
votes
7
answers
33k
views
How does the computer determine whether a number is smaller or greater than another?
It might sound like a stupid question but I'm really curious to know how a computer knows that $1<2$? Also, how does a computer know that the order of integer is $1,2,3,4,5,\ldots$ and alphabet is ...
0
votes
2
answers
12k
views
Doubt regarding cache hit ratios and access time
Question 1: What is the average access time for a 3-level memory system with access time $T_1$, $2T_1$ and $3T_1$? (Hit ratio $h_1$ = $h_2$ = 0.9)
The solution given is: $0.9[T_1] + 0.1(0.9[2*T_1] + ...
8
votes
2
answers
583
views
Mathematical model on which current computers are built
It is said that "The Turing machine is not intended as practical computing technology, but rather as a hypothetical device representing a computing machine. Turing machines help computer scientists ...
3
votes
2
answers
1k
views
Commonly used Error Correcting Codes
We know error correcting codes are parameterized as (n,k,d) codes. I wanted to know the values of these parameters for some commonly used error correcting codes in computer memories or in DRAMs, etc.
...
3
votes
1
answer
201
views
How do you go about designing a vector processor architecture for the sum of matrix products?
The following equation is a matrix expression where $B_i$ and $C_i^T$ are $n\times n$ matrices and k is a positive integer:
$$P = \sum_{i=1}^k B_i C_i^T $$
So $P = B_1 C_1^T + B_2 C_2^T + \cdots +...
3
votes
1
answer
5k
views
Using Amdahl's law how do you determine execution time after an improvement?
Speeding up a new floating-point unit by 2 slows down data cache accesses by a factor of 2/3 (or a 1.5 slowdown for data caches). If old FP unit took 20% of program's execution time and data cache ...
0
votes
1
answer
3k
views
How to convert process / cpu core based upon MIPS?
I want to know how can i find number of cpu cores/processor supported given i have the MIPS value?
For e.g I want to know the number of matching cores/processor to process speed of 18 triilion ...
24
votes
7
answers
16k
views
Why floating point representation uses a sign bit instead of 2's complement to indicate negative numbers
Consider a fixed point representation which can be regarded as a degenerate case of a floating number. It is entirely possible to use 2's complement for negative numbers. But why is a sign bit ...
5
votes
1
answer
1k
views
Indirection in IAS computer
From Computer Organisation and Architecture:
The IAS operates by repetitively performing an instruction cycle. Each
instruction cycle consists of two sub cycles. During a fetch cycle,
the ...
3
votes
1
answer
154
views
Could I simulate the implementation of memory components
I am currently reading the IEEE paper A Memory-Efficient Parallel String Matching
Architecture for High-Speed Intrusion Detection by Kai Zheng, Bin Liu, Xin Zhang, and Yunhao Liu.
In the paper ...
42
votes
6
answers
6k
views
How does a computer work?
I have been a computer nerd for many many years. I can program in quite a few languages, and I can even build them. I sat down with a buddy the other day and asked how a computer actually takes ...
6
votes
1
answer
555
views
Why can L3 caches hold only shared blocks?
In a recent CACM article [1], the authors present a way to improve scalability of shared and coherent caches. The core ingredient is assuming the caches are inclusive, that is higher-level caches (e....
4
votes
2
answers
2k
views
Theoretical speed gain of quad core vs. single core
I first asked this question at cstheory, but they suggested to ask my question here, so here it goes ...
I'm working on my masters thesis and I need to have theoretical value of the (average) speed ...
5
votes
7
answers
7k
views
Ternary processing instead of Binary
Most of the computers available today are designed to work with binary system. It comes from the fact that information comes in two natural form, true or false.
We humans accept another form of ...
8
votes
1
answer
2k
views
When do structural hazards occur in pipelined architectures?
I'm looking for some relatively simple examples of when structural hazards occur in a pipelined architecture.
The only scenario I can think of is when memory needs to be accessed during different ...
7
votes
1
answer
284
views
What techniques exist for energy-efficient computing and networking?
I am currently reviewing the potentials of cloud computing regarding energy efficiency and green IT. In connection with this review I am having a look on techniques for increasing energy-efficiency in ...
14
votes
2
answers
613
views
Organisation and Architecture of Quantum Computers
What are devices and their interconnections used alongwith Quantum Processors? Are they compatible with hardware devices like Cache, RAM, Disks of current computers?
4
votes
2
answers
823
views
Big-Endian/Little-Endian argument - paper by Danny Cohen
Reading a book I was redirected to "On holy wars and a plea for peace" paper by Danny Cohen, which covers the "holy war" between big-endians and little-endians considering byte-order.
Reaching the ...
9
votes
4
answers
14k
views
What is meant by interrupts in the context of operating systems?
I've decided to read Operating Systems Concepts by Silberschatz, Galvin Gagne (8th edition) over the summer. I've gotten to a topic that's confusing me - interrupts and their role as it relates to ...
5
votes
1
answer
395
views
Frame Pointers in Assembler
I am currently learning assembly programming on wombat 4, I am looking at Frame pointers. I understand exactly what a frame pointer is: it is a register and are used to access parameters on a stack. ...
4
votes
1
answer
141
views
Requirements for emulation
What are the complete specifications that must be documented in order to ensure the correct execution of a particular program written in Java? For instance, if one were archiving a program for long-...
66
votes
2
answers
30k
views
What happens to the cache contents on a context switch?
In a multicore processor, what happens to the contents of a core's cache (say L1) when a context switch occurs on that cache?
Is the behaviour dependent on the architecture or is it a general ...
15
votes
3
answers
4k
views
Logic gates from everyday materials
Logic gates are an abstract device which can be implemented with electromagnetic relays, vacuum tubes, or transistors. These implemenations have been successful in computing in part because of ...
14
votes
1
answer
413
views
Research on evaluating the performance of cache-obliviousness in practice
Cache-oblivious algorithms and data structures are a rather new thing, introduced by Frigo et al. in Cache-oblivious algorithms, 1999. Prokop's thesis from the same year introduces the early ideas as ...
22
votes
4
answers
5k
views
CPU frequency per year
I know that since ~2004, Moore's law stopped working for CPU clock speed.
I'm looking for a graph showing this, but am unable to find it: most charts out there show the transistor count or the ...
38
votes
2
answers
2k
views
Are generational garbage collectors inherently cache-friendly?
A typical generational garbage collector keeps recently allocated data in a separate memory region. In typical programs, a lot of data is short-lived, so collecting young garbage (a minor GC cycle) ...
14
votes
3
answers
291
views
Is there an abstract machine that can capture power consumption?
When reporting algorithmic complexity of an algorithm, one assumes the underlying computations are performed on some abstract machine (e.g. RAM) that approximates a modern CPU. Such models allow us to ...