Questions tagged [computer-architecture]
Questions about the organization and design of computer hardware.
1,073
questions
1
vote
1
answer
87
views
which devices use parity checking?
I've just started learning computer architectures and I'm having trouble understanding where these are used.
I know that parity checking is testing for accurate data transmission between nodes in a ...
0
votes
0
answers
18
views
What kinds of operations do modern GPU (Ampere architecture in particular) perform on FP or INT processing units?
I have a cool algorithm that I've designed while using my laptops M4000M(maxwell) graphics card. I'm looking to get a beefier desktop card to add more oomph to my calculations but find myself in a ...
1
vote
2
answers
172
views
What kind of data does L1, L2, L3 cache hold?
I understand that caches are the smallest and fastest memory that is integrated into the CPU. However, what I am confused about is the information that it holds. From what I know, the capabilities of ...
1
vote
0
answers
24
views
Is there any video where I can see how different data rates impact daily activities?
I've been learning about data speed and width and the rate of the bus where information is transmitted between components. But I can't see or understand how fast is the transmission.
For example, in ...
0
votes
1
answer
39
views
Are GPU's only a fraction of the cost of supercomputers?
According to wikipedia, the Frontier supercomputer is the largest supercomputer in the world, at 1 exaFLOPS, and cost 600 million USD.
I am quite surprised that the largest supercomputer only has 1 ...
-1
votes
2
answers
101
views
What does interface and peripheral functions mean?
I know that interface means a point where any two things meet and interact, but I can't seem to wrap my head around the term when they use it in computers.
A chipset performs interface and peripheral ...
0
votes
0
answers
163
views
2 -bit branch predictor : How we compute the prediction
I have studied the theory on branch predictors, however I am still confused . I can't figure out how we know compute the prediction .
Example:
A system has a BHT with 2-bit predictors initialised at ...
1
vote
1
answer
41
views
Finding bits per address in memory
I dont know if this is any important IRL, but I am trying to understand lines below.
4K words of main memory (this implies 12 bits per address).
4M X 16 means the memory is 4M long (4M = $2^2 \times
...
-1
votes
1
answer
47
views
Computer Architecture MIPS assembler with predictors
This MIPS code is given:
...
0
votes
1
answer
125
views
What can be the topic of my assignment for presentation about overall computing performance?
I have received the below question for presentation. It was random assignment, its not my field. What is this specifically in Computer Architecture?
how CPU and GPU architecture, memory bandwidth/...
0
votes
0
answers
239
views
How do I determine how many blocks have been replaced and what the hit ratio is of the following direct-mapped cache?
I have a direct-mapped cache with the following properties:
Address size = 32 bits
Cache block size = 8 words
Entries = 32
So we can see the cache as a 32 by 8 table where the index selects the row ...
0
votes
2
answers
79
views
Are all CPU computations done using registers?
From my understanding, a CPU register is a temporary storage or working location built into the CPU itself. The CPU includes some functional units such as the ALU (which is part of the chip, as far as ...
0
votes
1
answer
55
views
Does cache hit time include both time to read a cache and time to write a cache?
For example, if it takes 1 cycle to read the cache and 3 cycles to write the cache, is the hit time equal to 4 cycles? Also, does this vary based on whether the cache is an instruction cache or a data ...
-1
votes
5
answers
430
views
Can computers only add?
So recently I've been involved in a discussion and I was told that literally the only thing computer can do is addition. Is that true? What about logic operations? Aren't they performerd by physical ...
1
vote
1
answer
168
views
How can this MIPS processor execute one instruction in one cycle?
I'm reading section 7.3 (SINGLE CYCLE PROCESSOR) of Digital Design and Computer Architecture, Second Edition by David Money Harris.
At the end of the section the autor shows this MIPS processor and ...
1
vote
1
answer
54
views
What does it mean unambiguously that a number is value 0 up to numerical precision?
I was reading that a quantity $x$ is $0$ upt to numerical precision. What does this statement formally mean -- especially in the context of numerical methods or real computers.
I looked up in google ...
0
votes
1
answer
29
views
Difficulty understanding how federation increases cache performance for databases?
I am studying system design for distributed systems and in this page (https://github.com/donnemartin/system-design-primer), one of the following advantages was mentioned for federation for databases ...
2
votes
0
answers
60
views
Von Neumann mixed with Havard in modern CPU?
Modern CPUs (for a very wider range of "modern") use separate data- and instruction-caches. So at the core they (probably) have separate busses for data and instructions. Does that make the &...
0
votes
2
answers
2k
views
What is the difference between clock cycle and clock period?
I'm reading Computer Organization and Design Sixth edition by Patterson and they define clock speed as this:
Almost all computers are constructed using a clock that determines when events take place ...
0
votes
0
answers
34
views
Performance of CPU with two caches
I was very confused how to solve the problem when there are two levels of cache, My doubt is how does we quantify the performance when there are two caches. Consider a problem like this
Cache L1 ...
0
votes
1
answer
14
views
preprocessing or real time for magnification of portions of video
Im new at CS and would like to gather preliminary information to approach an interactive art project.
I want to construct a grid of videos - think about a matrix M = m x n where Mi,j is a video that ...
1
vote
3
answers
345
views
How bits translated into text on the screen?
recently i started studying computer science and computer graphics, and one question really haunts me. Mby someone can explain this. How bit patterns become translated into (for example ) text. I know ...
-1
votes
2
answers
171
views
In Programming data types size are depends upon what?
In Programming there is different data types (int , cahr , bool ,
float ) and they have different sizes (1,2,4,8 .. Bytes) , and the
size of data type are depends upon hardware or architecture of
...
1
vote
4
answers
412
views
Why is C still the fastest? Critique my take
A friend and I were surprised that C still has near-best performance among languages. I thought about why this is, and I wrote up a few paragraphs. I wonder if the friendly folks on CS stack could ...
0
votes
2
answers
82
views
Assembly language addressing mode instructions
I am studying assembly language. I feel very difficult in understanding few instruction.
ADD R1,R2,[R3]
ADD R1, R2, R3
What is the difference between these two instructions. I think second instruction ...
1
vote
2
answers
98
views
How are instructions from software sent to digital circuit in cpu?
I am studying computer architecture in my university and there is something that's troubling me. I get the bigger picture of how instructions are executed in the fetch - execute cycle and the complete ...
1
vote
0
answers
11
views
Why place of MA in MB then copy from MB to IR rather than going straight from MA to IR
During the fetch stage of the fetch-execute cycle, why are the contents of the cell whose address is in the MA (memory address register) placed in MB (memory buffer) then copied to IR (instruction ...
0
votes
1
answer
84
views
Max RAM capacity on modern cpus
I am wondering why modern consumer cpu usually has 128GB memory limit when server cpu supports terabytes. 128GB is really not that much.
Do they really can't handle more RAM? How wide is their address ...
3
votes
2
answers
95
views
Why do we not use continuous real quantities to represent continuous numbers
I've just been doing some pondering, and given the fact that computers already operate on fundamentally continuous physical quantities, and then we have to use transistors to turn those real ...
0
votes
0
answers
324
views
8-bit binary to bcd converter Verilog
We have been given task to write a 8-bit binary to bcd converter Verilog code, using structural code NOT behavioural, is it possible to guide us how can we create 8-bit binary to bcd converter using ...
0
votes
1
answer
113
views
Addition in One's Complement
It is my belief that addition in one's complement is done the same way as unsigned addition except that if there is a carry out in the most significant bit then that carry is added to the last ...
0
votes
0
answers
216
views
Calculate memory size given address and its value
Given the address 00011001111011101111101011011111 and it save a value
0x1FA0CBB7. Calculate the memory size in KB
What i try: the address has 32 bits so the memory size is 2^32 = 4294967296 bytes ...
11
votes
3
answers
4k
views
Why is a 4 KB alignment requirement imposed on Intel Core i7 page tables for Linux
I'm reading CSAPP and couldn't wrap my head around this part:
Summary of what the section says:
Intel Core i7 support a 48-bit virtual address space and 52-bit physical address space.
Core i7 uses a ...
0
votes
0
answers
60
views
Superscalar design on SimpleScalar simulation
I've learnt theoretically Computer Architecture at uni.However I can't wrap my head around it in practice. I am using Simple Scalar tool to simulate a benchmark program with configurable computer ...
3
votes
1
answer
28
views
Is there a meta-analysis of this concept anywhere?
In a textbook on systems and networks, it states "Stated broadly, a program tends to access a relatively small region of memory irrespective of its actual memory footprint in any given interval ...
1
vote
0
answers
222
views
How the data is transferred from main memory to hard disk?
I understand that data is transferred from the main memory to the CPU and vise versa using the data bus. But, I am unable to understand, how the data is being transferred from the main memory to the ...
0
votes
1
answer
123
views
Which part of the CPU is responsible for executing instructions
I was reading about the machine cycle. Everything was clear until I started with the execution of instructions. I know how an ALU and a CU work. I'm also aware of the process of fetching and decoding. ...
0
votes
2
answers
316
views
How does a CPU do function calls?
Besides basic instructions for a general-purpose computer (binary arithmetic, move instruction, and jump on condition), it seems you can't implement a universal turing machine (is that even the right ...
0
votes
0
answers
481
views
Alu architecture of a Hack Computer
I'm currently studying the ALU architecture (of a Hack computer) and how it works.
As part of my assignments, I have been asked the following question:
If we want the ALU to compute the function y-1, ...
-1
votes
2
answers
92
views
Is it possible to build a computer whose "ALU" is a single NAND gate?
I am not asking about if it is possible to build a computer using only NAND gates, since that question has been asked infinite times. I wonder if it is possible to replace the “ALU” in the cpu of a ...
2
votes
4
answers
302
views
Can there be a computer without software (only hardware)?
Can there be a computer without software (only hardware) which can produce meaningful output?
"Software" would be for example an operating system (whether in the level of "firmware&...
0
votes
2
answers
67
views
If a 32-bit computer system is being used, what are the size of the data/address/control bus width? [duplicate]
Are they exactly 32bits for a 32-bit system ?
0
votes
1
answer
137
views
What are the width of data/control/address bus for a 32-bit CPU?
Are they exactly 32bits for a 32-bit CPU?
1
vote
0
answers
32
views
How can DRAM memory speeds be improved?
What are some ways with which we can improve the speed of dynamic RAMs?
1
vote
1
answer
205
views
Where does tag directory is stored
I am studying direct mapping in cache. I understood the concepts like dividing into blocks and lines , tag directory etc. When solving numerical problems of finding main memory size or tag directory ...
-3
votes
1
answer
39
views
8085 microprocessor connection of CPU data bus with RAM data bus
What would happen if the CPU data-bus bit 2 is connected to the RAM data-bit 5 and CPU data-bus
bit 5 is connected to RAM data bit 2? Assume the rest of the connections are all right – explain.
1
vote
1
answer
448
views
Do number of registers and width of register have to be the same?
I am studying Computer Architecture with MIPS-32. The example system has 32 registers with each register having a width of 32 bit.
If I would want 128 registers instead of 32 registers, would I have ...
21
votes
9
answers
4k
views
Would it be wrong to say that the processor (and hardware) is the implementation of an interpreter for machine language?
The question is basically in the title. I know that a computers hardware is of course some physical object, where as the interpreter is some abstract thing that does something abstract with the code ...
0
votes
1
answer
93
views
What determines bus speed?
I would like to know what determines bus speed in a CPU. I know about bus width, that all makes sense, but since electrical pulses travel at light speed I don't understand why bus speed is measured ...
0
votes
1
answer
46
views
What does 'single sequential computer' mean?
I'm from a non-technical background. (Mentioning this for the convenience of explanation w.r.t intelligibility)
Book Name - "Introduction to Algorithms"
Authors - Thomas H. Cormen, Charles E....