Skip to main content

All Questions

Filter by
Sorted by
Tagged with
7 votes
4 answers
1k views

How does pipelined CPU access both code and data memory in real life?

In the Digital Design and Computer Architecture RISC-V Edition page 442, a pipelined CPU is designed with separate instruction and data memories, as shown in the figure below. However, this picture ...
u185619's user avatar
  • 193
4 votes
1 answer
162 views

Understading CPU pipeline stages

I'm working on implementing a CPU that needs a three-stage pipeline. The division of those stages is open for me to determine. I am struggling to comprehend how the stages are counted. While some ...
TheGMX's user avatar
  • 75
0 votes
3 answers
148 views

Single port ROM: how does the CPU read constant data?

I am looking at different CPU micro-architectures. Frequently, it happens that the ROM is supposed to contain only instruction data. See below for an example: In such design, how is the CPU supposed ...
wbs2422's user avatar
  • 690
0 votes
1 answer
48 views

Are iGPUs utilized in any way while using a discrete GPU? Could they? Should they?

Whenever I've seen die shots of CPUs that contain integrated GPUs, it seems that the GPU takes up a not-insignificant portion of the die. (Source: AMD "Phoenix 2" die shot, purely an ...
A. W.'s user avatar
  • 103
0 votes
0 answers
40 views

does data and instruction memory we see in the data path corresponds to the L1 Instruction and Data cache inside of the core?

In CPU data path there are blocks called data memory and instruction memory ? Are these blocks L1 Instruction and L1 data caches ? For instance check figure 4.10 in this link. We know that generally ...
Abdulkadir Arslan's user avatar
0 votes
1 answer
294 views

How to implement the Instruction Set in Logisim

I have an assignment that requires me to build an 7-bit CPU. I’m done with implementing some of the requirements that includes 4 8-bit registers (the requirements say I have to store the parity bit), ...
maira's user avatar
  • 1
3 votes
1 answer
140 views

Why forward from MEM Stage in a sequence of add instructions that all contain the same register?

I was reading Computer Architecture and Organization 5th edition by Patterson and Hennessy. In Chapter 4, section 4.7 on Data Hazards, I read the following excerpt regarding forwarding from the MEM ...
Juan De Castro's user avatar
5 votes
6 answers
751 views

Were vacuum tube computers made of logic gates?

A lot of introductory resources on modern CPU present them as being built from NAND gates (see here and there for instance). Actually, it is possible to build a modern CPU using almost exclusively ...
Weier's user avatar
  • 187
1 vote
0 answers
53 views

Wrong value in memory because of a branch misprediction

Lets say we have instructions like: bne r1 $0 loop sw r2 0(r1) Let's say we go ahead with the taken path, i.e., execute the sw instruction after bne assuming the ...
Ashutosh Mishra's user avatar
0 votes
1 answer
92 views

Is it possible to make the "arithmetic" part of the ALU to be mircoprogrammed?

We know that the Arithmetic and Logic Unit in CPU is a hardware, it is a combinational circuit. Binary addition, for example, is very fast because it doesn't have to be microprogrammed; there is ...
Noob_Guy's user avatar
  • 453
4 votes
2 answers
525 views

How does CPU's Machine Check Architecture work?

Modern CPUs can alert the OS when itself is malfunctioning, i.e. logically incorrect, and apparently, this is supported by a hardware diagnostic feature called Machine Check Architecture. I can ...
Meatball Princess's user avatar
0 votes
0 answers
118 views

Mark Horowitz Computing's energy problem - methodology

I have a question about the Mark Horowitz paper: Computing’s Energy Problem (and what we can do about it). In the paper, the author breaks down the sources of energy loss in modern computing systems. ...
Jure Vreča's user avatar
0 votes
0 answers
45 views

Can we service another memory request from L1 cache when an L1 miss is being serviced from L2?

Consider the case where L1 cache miss occurred and is being serviced by L2 cache which could take many cycles (may go to main memory in case of L2 cache miss). In the meantime L1 cache is idle, in ...
HWDesigner's user avatar
1 vote
1 answer
232 views

Mitigating structural hazards in register files in processor pipelines

I am reading about structural hazards in pipelined architecture in processors. In classic RISC pipeline one such hazard is when we write and read simultaneously to same register, which may cause ...
Meenie Leis's user avatar
  • 2,782
3 votes
4 answers
845 views

Is there any difference between a CPU core and a CPU itself?

I was reading this article that explains the difference between a thread and a core and it says the following: ...
penguin99's user avatar
  • 889
4 votes
3 answers
2k views

How to do signed 16-bit arithmetic on an 8-bit processor?

For example, to add two 16-bit numbers on my 8 bit machine, I add the low bytes together, then the high bytes together, and then add the carry flag to the high byte of the output. This strategy falls ...
Max Zabarka's user avatar
2 votes
1 answer
569 views

Program counter updating in a single-cycle ARM processor

This picture is from the book Digital Design and Computer Architecture: ARM Edition. It implements the LDR instruction. I have one question: R15 is supposed to be PC+8. In the picture, is R15 ...
user394334's user avatar
0 votes
1 answer
2k views

How do computer memories interact with each other (registers, cache, RAM, ROM)?

After Googling around for some time, I have managed to get a good understanding what makes these components different, but I've yet to find any clear computer architecture-focused article/thread on ...
EL02's user avatar
  • 103
0 votes
1 answer
56 views

Does the memory bus span multiple layers on die?

My question is if you take any model desktop CPU such as the ones manufactured by Intel would the design of the memory bus span multiple layers of a single die or would it be contained on a single ...
JoeT's user avatar
  • 11
1 vote
0 answers
41 views

Are coarse-grained reconfigurable architectures a subset of dataflow architecture?

By definition, dataflow architectures consist of large modules in the dataflow path, such as adders and multipliers for integer, floating-point, or fixed-point computation. Hence, are coarse-grained ...
Giovanni's user avatar
0 votes
0 answers
144 views

What is the cost of increasing the number of register names?

Increasing the number of registers in a CPU, has the upside that more values can be kept in registers instead of having to spill to stack. It has some downsides, one of which is that more instruction ...
rwallace's user avatar
  • 563
0 votes
2 answers
393 views

Transistors collector input output of other transistor?

I'm new to computer science and trying to learn the basics. Have learnt how to create logical gates using simple components like relays, thanks to nandgame.com. This was easy, boolean functions, have ...
user avatar
2 votes
1 answer
194 views

Internal differences between CPUs of the same architecture

What is the difference between, for example an Intel i3-4005U (1.7 GHz) and an Intel i3-4025U (1.9 GHz)? These CPUs are from the same generation, have the same amount of cores, cache, iGPU, and ...
inf1425's user avatar
  • 23
-1 votes
3 answers
2k views

What is the difference between stalling and flushing in a microprocessor?

As the title suggests, I want to understand the difference. Attaching the reference.
Anonymus's user avatar
  • 107
-1 votes
1 answer
1k views

Is it true that CISC architectures generally consume more power than RISC architectures?

I keep hearing CISC architectures consume more power than RISC architectures. This is said to be the reason for using RISC architectures for low-power applications. I am a skeptic, I think it could be ...
Shashank V M's user avatar
  • 2,331
10 votes
3 answers
2k views

How does an operating system or program detect the CPU model name? [closed]

What kind of binary compatibility is present for 2 processors sharing an Instruction Set?. I had asked a question on Computer Science Stack Exchange, to which I got an answer which said: As a trivial ...
Shashank V M's user avatar
  • 2,331
1 vote
1 answer
588 views

Where is the RAM stored on a RISC-V CPU? [closed]

Does RISC-V have any opinion on whether the RAM is stored on the same chip as the CPU (like on ARM devices) or on a separate chip somewhere on the motherboard (like on an x86 desktop)? I assume that ...
Aaron Franke's user avatar
4 votes
1 answer
406 views

Why can't an Asynchronous CPU use a simple "completion bit" to signal completion?

I've been reading about how asynchronous CPUs work, but they always seem to involve some complicated way of communication. Wikipedia talks about a two-way and four-way handshake. I found a pdf from ...
DrZ214's user avatar
  • 1,087
2 votes
1 answer
157 views

Size of a memory cache

Assuming we have a virtual address issued by a model CPU that contains a total of 32 bits and 20 bits of this address are reserved for the tag + the cache comprises a total of 1024 cache lines. Should ...
Samir's user avatar
  • 227
-1 votes
1 answer
2k views

Logisim: Implementing a control unit for "Addition", "Logic bitwise AND" and "right logic shift" in ALU [closed]

I'm very new to circuit design. I've built an ALU and now I only need a control unit for three operations, "Addition", "Logic bitwise AND" and "right logic shift". What ...
nvs0000's user avatar
  • 57
3 votes
2 answers
400 views

How can I fix delay between Instruction and Program Counter?

I am designing the MIPS processor, this includes Data Memory and Instruction memory for testing. I had a problem with IM synthesis covered in this question (How to make a synthesizable Instruction ...
katzesaal's user avatar
-1 votes
2 answers
182 views

What is the most important CPU price factor [closed]

I have two intel CPUS with distinct features. intel i7 8550U intel i5 8300H Which have big performance difference with the cheaper 8300H being higher in memory ...
Abraham's user avatar
  • 99
1 vote
0 answers
61 views

Difficulty in understanding the concept of operand forward in pipeling and when to use split phase

Given below is a question from \$\text{GATE } 2015 \text{ CS}\$ paper, Consider the sequence of machine instruction given below: \begin{array}{ll} \text{MUL} & \text{R5, R0, R1} \\ \text{DIV} &...
Abhishek Ghosh's user avatar
4 votes
1 answer
802 views

Is it possible to remove the write back stage in 5-stage pipeline?

In this graph, can we simply remove the write back stage since the mux is pushed back into the memory access stage and there is no logic in the write back stage. Is it because of the register file ...
Lei Gao's user avatar
  • 113
1 vote
4 answers
3k views

Can an FPGA/ASIC have an operating system?

I know FPGA/ASIC are for a specific task and they are not microprocessors and an OS is needed mainly if multiple processes (tasks) need to be run concurrently. Just wondering if an FPGA/ASIC can have ...
Franc's user avatar
  • 93
1 vote
2 answers
468 views

What does the 8086 CPU do with the data returned from an address in RAM?

I understand how a CPU works fairly well, but there is this one thing which I've never really gotten the hang of. Say we have an Intel 8086 CPU (16 bits wide registers) which is about to fetch its ...
Frævik's user avatar
  • 35
-2 votes
1 answer
271 views

A computer architecture joke [closed]

Background Some months ago, I watched a Youtube video posted by the channel Numberphile. The video was on famous world mathematician Terence Tao, and in the video, he seemed to be struggling with ...
williamcodes's user avatar
1 vote
1 answer
2k views

How can I modify single-cycle MIPS processor to implement jal command?

Hello Stack exchange community I was wondering which modification should I have to make in order to enable single-cycle MIPS processor to run a jal(jump and link) command? My most pressing confusion ...
Amir's user avatar
  • 11
-1 votes
5 answers
792 views

What are the disadvantages of CISC architecture?

I took the computer architecture exam today. Our teacher asked a question. What are the disadvantages of CISC architecture ? Increases the number of commands while writing the program Makes ...
Enver Pasha's user avatar
1 vote
1 answer
114 views

electrification of all transistors

We discussed a topic in the computer organization course. The professor told us that when the computer first turned on, all the transistors on the CPU are instantly electrified. So he said, keeping ...
Truestory's user avatar
0 votes
0 answers
170 views

what were the ENIAC's equivalent to the modern CPU's elements?

If a modern CPU contains these elements: - 3 or more register units - ALU - control unit and the CPU is connected to a RAM composed of several addresses, what ...
Gigiux's user avatar
  • 113
1 vote
0 answers
599 views

How to cascade IC 74HC161 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 ...
sttc1998's user avatar
1 vote
1 answer
943 views

Do 64-bit CPUs consume more power than 32-bit ones?

In this lecture about efficient computing for deep learning, the benchmarks show a 3-fold increase in power usage between 8-bit and 32-bit addition operations. Between 8-bit and 32-bit multiplication, ...
Hey's user avatar
  • 119
1 vote
0 answers
72 views

Cache Memory Read and Write Miss/hit policies: details of a real processor

All the references I have checked so far explain the Read Miss,Write Hit/Miss policies at the same level of detail. I understand their concepts but I am looking for more details on their ...
KM23's user avatar
  • 13
1 vote
5 answers
314 views

Has a CPU with Highlevel language (C/C++) as machine code ever been designed?

I got a question popping directly from reading Tanenbaum's Structured Computer Organization. Stating from Chap. 1 Sec. 1.1 : A machine with C++ or COBOL as its machine language would be complex ...
a_bet's user avatar
  • 337
1 vote
1 answer
521 views

What is an emulator POD?

Jack Ganssle - The Firmware Handbook States ...
Dustin K's user avatar
5 votes
2 answers
332 views

Thoughts & questions on custom CPU architecture

I'm designing a CPU architecture. I've come up with a preliminary design: I'd like general thoughts on what I can improve in the design and also I have some specific questions: Is it overkill to ...
Jachdich's user avatar
  • 155
2 votes
1 answer
2k views

The accurate time latency for 'lw' instruction in a single-cycle datapath

I want to calculate the cycle time of a single-cycle datapath. Then from the course, I know the time should be the execution time of the longest instruction, which is 'lw' in MIPS. So I try to ...
Will's user avatar
  • 21
1 vote
1 answer
93 views

CPU cache write policy - evict already dirty? + storage of memory address

I'm reading about cache in wiki https://en.m.wikipedia.org/wiki/CPU_cache and the following phrase seems not clear. Also, a write to a main memory location that is not yet mapped in a write-back ...
Child Detektiv's user avatar
0 votes
1 answer
372 views

What kind of hardware multiplier do modern processors use?

I was wondering what kind of multiplier implementations modern processors use. Is it some derived variant of booth Wallace tree algorithm? Are these kinds of micro-architectural details publicized ...
Painguy's user avatar
  • 111