Questions tagged [computer-architecture]
Questions about the organization and design of computer hardware.
1,073
questions
0
votes
1
answer
139
views
Vectorization vs Asynchronous parallelism
I have taken a course "Programming for Performance" in my college and in the first week of the course, I have come across vectorization and Asynchronous Parallelism. But I am unable to ...
0
votes
2
answers
110
views
Storage in registers
Whenever CPU needs the data, it gives the address of that word to the RAM via bus, then the RAM generated the copy of that word and sends to the registers via bus. Why can't the RAM send the original ...
1
vote
3
answers
1k
views
How is a program stored before compiling?
When we write code, after compilation the code will be converted to machine language and then stored in the hard disk. But before compiling the code, it is still in the high-level language. How and ...
0
votes
1
answer
1k
views
Booth's algorithm Question : Binary Number Arithmetic (Multiplication)
It's being said booth's algorithm produces the output exactly as normal binary multiplication while reducing the number of operations performed and can be used for both positive and negative numbers !
...
0
votes
1
answer
258
views
How can I mathematically show the largest possible value of a 64-bit double?
I'm a physics student wondering how I can mathematically show the largest possible value of a 64-bit double. I don't want to know just the answer, since that is freely available. The equation I was ...
2
votes
3
answers
1k
views
Do the newest computers still have ROM?
Now that many computers use UEFI instead of BIOS to boot the computer, and UEFI instructions are usually stored in a hidden hard disk partition, does this mean the newest computers do not need to have ...
0
votes
0
answers
167
views
ALU-Store data hazard
Consider the following code sequence that is executed on a processor that doesnt supports stalls and only supports ALU-ALU forwarding :
...
1
vote
0
answers
95
views
How can a CPU be busy during DMA access with burst mode transfer
During burst mode in a DMA access, the DMAC has control over the bus for the whole transfer session which includes DATA PREPARATION time as well as DATA transfer time, after the transfer is over, the ...
0
votes
2
answers
143
views
Communication between hardware components
We know that each component has different frequencies, but what happens when a fast component directly comunicates with a slow one?
0
votes
1
answer
220
views
Universal Turing Machine algorithm
First, I learned this based on these facts:
Turing machine (TM) will be define with 7-tuple Notation, $M=\langle Q,G,b,S,d,q_0,F\rangle$.
Any computation rules that can use to simulate any possible ...
0
votes
1
answer
725
views
How much space an ascii character really takes on a 64 bit word addressable memory?
I know that an ASCII character needs 1 byte of memory for storage, but if a computer uses a 64-bit word addressable memory does it mean that the character actually takes 8 bytes even when only 1 byte ...
2
votes
0
answers
63
views
Confused with an Instruction Cycle question
Here's the question
The content of PC in the basic computer architecture (given below) is 3AF. The content of AC is 7EC3. The content of memory at address 3AF is A32E. The content of memory at ...
1
vote
1
answer
147
views
How does the cache / memory know where to return results of read requests to?
The pipeline of a modern processor has many stages that may issue read
requests to main memory, e.g. in fetching the next command or loading
some memory location into a register. How is the result of ...
0
votes
2
answers
3k
views
How to improve the CPI and Speed up factor in CPU-OS simulator?
I am using the CPU-OS simulator by Besim Mustafa(https://www.merlot.org/merlot/viewMaterial.htm?id=476196) and I am studying Pipeline Stages. I have written a simple program and captured the metrics ...
1
vote
0
answers
53
views
How to cascade register correctly?
Currently I have this 4 bit CPU as shown in the schematic diagram below.
What I wish to achieve:
Add one more output register to make the CPU output a total of 8 bits
Show alphabet using the 8 bits ...
1
vote
0
answers
62
views
How can I get 8 bits output from 4 bit CPU?
I am very new to Computer architecture. I am thinking to add one more output register to this 4 bit CPU as shown below. However, I am not sure should I connect the output register to the current CPU. ...
2
votes
2
answers
152
views
How is CPU different from GPU?
A central processing unit offers to handle various operations like calculating, watching movies, making presentation etc. While a graphics processing unit is majorly used for the purpose of video ...
2
votes
1
answer
891
views
What are the differences between Earliest Deadline First (EDF) and Earliest Due Date (EDD)?
From my understanding, the EDF (Earliest Deadline First) rule is essentially an iterative "version" of the EDD (Earliest Due Date) rule, which allows for preemption. At every point in time, ...
1
vote
1
answer
298
views
How does computer memory store the file name?
I have this doubt for long time. When i save a notepad file, it takes the memory for the information in the file. let's say, I type 'ABC' in notepad and saved the filename as stack, it shows that the ...
1
vote
1
answer
49
views
In a single cycle datapath, do 'decode' and 'operand fetch' occur simultaneously? [closed]
After instruction has been fetched, does it go to control unit and register file at the same time or one after the other?
For example if the control unit and register read both have 80ps delay, and we'...
3
votes
1
answer
65
views
Detecting Data and Control Hazards for a mips 5 stage pipeline
I'm practicing data and control dependencies, but having trouble detecting them. For this example, I'm assuming this pipeline is fully bypassed (with forwarding). I think the only data dependency is ...
0
votes
2
answers
458
views
Big-endian systems and the smallest memory address
I read on en.Wikipedia that "Big-endian systems store the most significant byte of a word at the smallest memory address and the least significant byte at the largest. A little-endian system, in ...
-5
votes
1
answer
87
views
Functions of CPU
What part of the CPU communicates with all the other parts of the processor and makes the processor faster by containing frequently used data or instructions?
1
vote
0
answers
18
views
Getting the flit size in a Tiled Chip Multicore Processor(TCMP) system with a mesh architecture
Consider a TCMP system with, say, a 4x4 mesh Network on Chip (NoC) where each tile has a superscalar processor. It is given that that the TCMP uses 64-bit words and the inter-router link bandwidth is ...
0
votes
1
answer
99
views
Tag storage when using HBM as an L4 cache
I'm reading through Computer Architecture: A Quantitative Approach, Sixth Edition, and I'm trying to understand the issues surrounding tag storage in using HBM as an L4 cache. The primary concern ...
1
vote
2
answers
174
views
Confusion about "false sharing"
This is a homework problem that I have
In a multicore system, you are running the code on the right on each core, and it suffers from false sharing. You can assume ...
6
votes
3
answers
1k
views
Where should I start to understand how computers work? [duplicate]
I am interested in how computers work but I have no idea how the concept of 0's and 1's converts to making possible for people to control a computer by programming. I would like to understand from ...
1
vote
1
answer
118
views
MIPS pipeline: choosing between slowing down a stage and adding a new stage
Suppose a new, more complicated, instruction is desired for this
simple pipelined MIPS processor. Suppose, also, it could be
implemented by either (a) adding new logic to the execute stage of the
...
0
votes
1
answer
205
views
Help with performance and speed-up question related to number of cores and their areas
There is a question in my exam that said:
Consider the following three processors (x, y, and z) that are all of varying areas. Assume that the single-thread performance of a core increases with the ...
0
votes
1
answer
355
views
Computing average access time
A computer has a cache memory and a main memory with the following features:
- Memory cache access time: 4 ns
- Main memory access time: 80 ns
- The time ...
0
votes
1
answer
38
views
Procedure for finding if Overflow occurs on addition
I have two 4-bit 2's complement numbers a,b, and their sum in s (Also a 4-bit 2's complement number). Using only the basic logical operations, I need to write a procedure to find if an overflow occurs....
1
vote
1
answer
270
views
Binary to ASCII using logical operations
I am learning Computer Architecture from Introduction to Computing Systems (2nd Edition) and am stuck on this question.
What operations can be used to convert the binary representation of 3 into ...
2
votes
0
answers
41
views
Finding the timestamps of processes implementing Lamport's clocks
I have been asked this question, but don't know how to go about answering it.
Three process, which are implementing Lamport's clocks, are running and a lot of events are taking, place including some ...
0
votes
2
answers
126
views
How does a cache handle overwriting between 2 addresses in the same block?
Consider a byte-addressable cache with block size 16 bytes, bytes 0-15 form one block.
First I write an int(let's say 7) to address 0, so now bytes 0-3 contain the int 7. Now if I try to write another ...
0
votes
0
answers
141
views
Floating point binary number to a 7 segment decimal display
I have covered floating point (32 bit) conversion from float to decimal and decimal to float. I am happy with the theory and I have created a conversion tool in Excel VBA which works just fine ...
0
votes
0
answers
63
views
Size of the data bus connecting CPU cache and RAM?
I'm reading about CPU caches and I read that typically, cache line sizes start from 32 bytes. Since memory is slower than CPU caches therefore data is frequently loaded from the RAM into the cache and ...
0
votes
0
answers
12
views
Suppose that an instruction encoding format has 4 bits for argument registers. How many registers is the architecture most likely to have?
Working through some material on CPU architecture and am unsure on the following question:
Suppose that an instruction encoding format has 4 bits for argument registers. How many registers is the ...
0
votes
1
answer
111
views
What purpose was the Von Neumann machine intended for? And what hardware limitations existed when von Neumann invented it?
Its namesake invented the Von Neumann architecture (VNA) in a specific computing environment and a specific context. In light of those two:
What kind of limitations was the VNA designed to work with?
...
0
votes
1
answer
67
views
Single Cycle Data-path Requirements
How does having separate instruction and data memories help in implementing a single cycle datapath for a MIPS instruction set? I want to know why we can only use a datapath element once in a cycle ...
0
votes
1
answer
140
views
Would it be possible for a new technology to make RAM obsolete?
If a new technology is invented for storage devices, which is the same as or speeder than RAM (bandwidth&lanecy), is it possible to make RAM obsolete and consider the storage device as the main ...
28
votes
3
answers
8k
views
Why is the Nintendo Entertainment System (NES) referred to as an 8-bit system, rather than a 1-byte system?
As far as I've understood it, referring to this system as an 8-bit system points out that one can access 8 bits of data in one instruction.
While I understand that we're not saving vast amounts of ...
2
votes
2
answers
298
views
How is Memory Segmentation done in 8086?
Basically what I know is that 8086 can address up to 1 MB of locations which are divided in 4 segments(code, data, extra and stack) 64 KB each. But 64 KB * 4 is 256 KB, which doesn't add up to 1 MB(...
1
vote
0
answers
111
views
How to predict the time complexity of matrix multiplication and inverse on a GPU?
Nvidia GPU can speed up the matrix manipulation greatly. I want to have a basic idea to predict the consumed time for matrix manipulation.
How can I analyze the time complexity of matrix ...
18
votes
11
answers
5k
views
Why do logic gates behave the way they do?
I am a Software Developer but I came from a non-CS background so maybe it is a wrong question to ask, but I do not get why logic gates/boolean logic behave the way they do.
Why for example:
...
0
votes
1
answer
276
views
Representation of -40 in 8bit computer using 2's complement
What is the representation of -40 in a 8bit computer using 2's complement intiger?
0
votes
0
answers
41
views
why does Register write(RW) stage of a single cycle processor takes the shortest time to execute? Explain your answer
I can't seem to find the explanation for why RW stage of a single cycle processor takes the shortest time to execute. Can anybody explain why this is so.
0
votes
2
answers
102
views
What needs led to the implementation of ASCII codes?
Prior to ASCII existing, we already had at least four number systems, namely
Binary
Decimal
Octal
Hexadecimal
So what were the needs that lead to the ...
1
vote
1
answer
1k
views
Why is the opcode 0 for all r-type instructions? Please explain your answer
I can't seem to find the explanation for why all r-type instructions have opcode 0 always. Can anybody explain why this is so.
0
votes
2
answers
363
views
Are interrupts only found in BIOS?
I may be misunderstanding here-- but are interrupts only found in BIOS and not UEFI systems?
More context:
"Through standardized calls to the BIOS (“interrupts” in computer parlance), the operating ...
0
votes
1
answer
55
views
Memory Addressing - Alignment Clarification
I'm reading "Computer Architecture A Quantitative Approach" (5th edition) and I'm having a hard time understing this table:
I understand how Misalignment happens, i.e., some byte, half-word, word, or ...