Questions tagged [cpu]

The CPU, the Central Processing Unit, is known as the heart of the computer. It is responsible for carrying out the instructions of a computer program by performing the basic arithmetic, logical, control, and input/output (I/O) operations specified by the instructions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
47 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 ...
0 votes
1 answer
71 views

Configuring CPU with the reversed power polarity

My question comes from a pure curiosity. I initially wrote that it has no practical value, but in the process of writing I came to the idea that one (e.g. an intruder) can potentially use it to ...
10 votes
8 answers
5k views

What mechanism does CPU use to know if a write to RAM was completed?

How does CPU know that a write to RAM was successful, like how does a faster CPU know that data was successfully written to a slower RAM? You're free to mention any system architecture because I'm not ...
1 vote
1 answer
100 views

Is a feedback loop from program counter input to output problematic?

I'm designing a very simple CPU to be built on a custom PCB. I designed the CPU in LogicCircuit, and it seems to work. But I'm wondering it a specific part of the CPU will also work in real life. I ...
0 votes
1 answer
2k views

how to copy the value of a register into another (Logisim)

how to design the circuit that copy the value of register into the other? I only know the register can be written or loaded, but how is it possible that after loaded the value of 1 register and still ...
0 votes
2 answers
71 views

What is the communication protocol used by non-expansion card USB ports to communicate with CPU?

USB ports can come as expansion cards, like this: Now obviously, since this is a PCIe USB card, the communication protocol used by this expansion card to communicate with CPU is PCIe. But what about ...
2 votes
3 answers
354 views

CPU no pipeline vs 1 stage pipeline

I was taking the the P.E. practice exam and there is a question that shows a CPU without pipeline stages. There were options for both a 1 stage pipeline or that it was a non-pipelined architecture. ...
0 votes
1 answer
66 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 ...
2 votes
1 answer
368 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 ...
3 votes
5 answers
1k views

How can a 4-bit CPU have 40 instructions?

Currently, I am using Logisim (yes, still Logisim) to build a 4-bit variant of the 8-bit SAP-1 microcomputer. However, I ran into a problem with the instruction register. Let me explain. The SAP-1 has ...
0 votes
1 answer
107 views

Does locking a CPU frequency to a higher state (even OC) have any downsides?

I got into an argument with a friend that thinks generally is not a good idea to manually lock a CPU to a high frequency, or even overclocking by locking the frequency, in a stable scenario. His main ...
2 votes
1 answer
1k 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 ...
20 votes
10 answers
8k views

For mainstream computing what are the practical advantages of 64-bit register size CPUs given the needs of today and the near future? [closed]

I understand one of the limitations of 32-bit processors is the inability to easily address more than 4GiB of RAM, which is a present day need even for mainstream computing on phones, tablets and ...
1 vote
0 answers
52 views

6502 Extra Cycles on Page Cross

On the 6502 processor, when using the Absolute,X, Absolute,Y or (Indirect),Y addressing ...
0 votes
2 answers
387 views

Undefined(U) values in Vivado sim

I am designing a nanoprocessor and below is my instruction decoder code. As you can see I have used case statements for specific operations based on the input signal. Because of this, as you can see, ...
1 vote
0 answers
64 views

Why CPU DDR Memory Controller Has 2 Clock Outputs?

I'm trying to understand the ddr structure for the iMX6 Rex Module . The cpu used is the MCIMX6Q5EYM10AC model from the NXP i.mx quad series. MCIMX6Q5EYM10AC Datasheet iMX6 Rex Module Shematics A ...
2 votes
1 answer
864 views

What stops electricity jumping from one part of a circuit to another part of a circuit in a CPU?

If electricity jumps then what prevents even a small charge of electricity jumping from one conductor to another conductor in a CPU where the distance between the conductors is 1000s of a fraction of ...
0 votes
0 answers
28 views

Why does the Fused Multiply Add CSA use the inverted MSB of the addend when one multiply operand is negative?

I found one valuable paper about the "Fused Multiply Add": Instead of using 161-bit CSA, Only the 106 least-significant bits of the aligned A are needed as input to the 3:2 CSA, because the ...
-1 votes
2 answers
73 views

(Tiny, very few, raindrops of) Water got into computer [closed]

my CPU was placed next to a window and due to rain a tiny amount of raindrops entered into it. This happened around 3 hours back. Water on the top of the case was a tiny bit and inside I could only ...
11 votes
3 answers
1k views

What does a thick MOSFET symbol mean?

I have come across a bag of about 5,000 n-type MOSFETs (2n7000), and I figured the best thing to do with them is to build a 6502. I found a diagram of the nMOS 6502 layout But I am confused as to ...
-2 votes
1 answer
71 views

My computer force closes games while I’m playing them [closed]

I have done everything I can think of to solve this problem. My computer sat in my car for months while I was in boot camp and I found a spot on there that might be causing it but I don’t know enough ...
0 votes
0 answers
21 views

Entering memory adresses into a direct mapping cache

I have been given the following problem: A computer CPU generates the following adresses in 8 bit binary form: 91, B3, 70 etc. The computer has direct mapping cache that can store 64 words and 8 words ...
0 votes
0 answers
52 views

CPU's ESD Rating

Today I was assembling a PC, and went through all the ESD stuff but at the end was wondering how sensitive are these devices actually are. So my question is What is the ESD HBM rating of a CPU pins ...
0 votes
0 answers
32 views

Estimating Power and Energy Consumption of a Spiking Neural Network

I have a traditional Convolutional Neural Network (CNN), and I've converted that to a Spiking CNN (S-CNN). I wanted to compare them on the basis of power and energy consumption. By using a different ...
0 votes
2 answers
75 views

"32 bit memory" meaning

While looking at a datasheet about an NXP ARM CPU, I saw that the DRAM controller could support this Memory types: LPDDR4 • Two channels of 32-bit memory: • LPDDR4 up to 1.6 GHz When it says two ...
0 votes
0 answers
90 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. ...
15 votes
5 answers
1k views

Analog analog multiplication, part of a hybrid CPU (for fun)

Short version: How do I make an analog multiplier that takes two analog DC inputs? Long version: I made a comment recommending Ben Eaters videos for another question, while doing so I ended up ...
2 votes
2 answers
238 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 ...
0 votes
0 answers
49 views

DRAM/DDR energy consumption

I have some questions about the origin of energy consumption in DRAM based memories/systems. In Mark Horowitz paper Computing’s Energy Problem (and what we can do about it) the author breaks down the ...
20 votes
5 answers
7k views

Why are CPUs becoming smaller and smaller?

It is a known fact that over time processors (or chips) are becoming smaller and smaller. Intel and AMD are in a race for the smallest standards (45nm, 32nm, 18nm, ..). But why is it so important to ...
0 votes
1 answer
41 views

How much energy decoder & branch predictor consumes compared to ALU/FPU?

x86-64 CPU core consists of many parts, including instruction decoder, branch predictor and ALU/FPU blocks. Which of these parts consumes the most energy? Are there any rough number for each of these ...
0 votes
1 answer
270 views

What is the difference between CPU, GPU, TPU?

I use python code on Google Colab. I would like to ask what is the difference between CPUs, GPUs, TPUs and why the last two have so intense acceleration on python code??? I have seen tutorials on ...
0 votes
0 answers
41 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 ...
0 votes
1 answer
168 views

How does a flip-flop work in CPU registers?

From what I know, CPU registers work with flip-flops and when the data must pass from one register to another it travels on a bus. This happens only through an appropriate control signal. What I want ...
-1 votes
2 answers
107 views

Replacement of RaspberryPi [closed]

I'm working with a learning project where I use an IMU sensor unit connected with Raspberry Pi 4B via UART. I receive data on Raspi's serial port and later I use that data to display it on a self made ...
1 vote
1 answer
71 views

Will a pair of identical conductors in the form of identical waves that are 180 degrees out of phase cancel each other out completely? [duplicate]

Since identical waveforms that are 180 degrees out of phase will cancel each other out completely, does that mean a pair of identical conductors in the form of identical waves that are 180 degrees out ...
22 votes
8 answers
19k views

Using CPU heat to generate electricity

I've been reading Tanenbaum's Structured Computer Organization and he says one of the major bottlenecks for increasing CPU clock speed is heat. So I started thinking: Is it possible to remove the ...
11 votes
5 answers
2k views

Can we say that a CPU is an ASIC that is designed to perform a wide range of instructions?

My question is more terminological than technical. I have come across different definitions of what an ASIC is. The most common one is that an ASIC is an IC that is designed for a specific application ...
2 votes
1 answer
961 views

Performance difference when comparing PCIe DMA vs. MMIO for same data access size

Some PCIe devices can map their own device memory region fully to contiguous host physical memory address space through a feature called PCIe Resizable BAR (base address register), which makes it ...
2 votes
1 answer
137 views

Is it possible to connect an antenna of the proper length to a CPU and radiate its 4 GHz oscillating current?

Since a 4 GHz CPU has been made to provide that super high frequency, is it possible to connect an antenna of the right length to it and radiate its 4 GHz oscillating current?
1 vote
0 answers
49 views

Are there now 64-bit processors that deal with denorms routinely with no exception or interrupt?

Title says it all. Are there processors with FPUs that deal with denorms arithmetically correctly (don't assume they're zero nor flush them to zero) and don't cause an exception? I would be interested ...
15 votes
5 answers
3k views

Can a CPU be notified that it's about to lose power? [closed]

If I have a desktop computer and I pull out the power cord, are there are a few million CPU cycles that still happen before it completely runs out of energy? There could even be a capacitor on the ...
3 votes
2 answers
267 views

In an ALU, is every function calculated simultaneously?

I'm designing a 4 bit ALU as a project. I have circuits that can calculate addition, subtraction and bitwise logic operations - my question is, do I tie A & B (4 bit inputs) to every circuit that ...
5 votes
7 answers
740 views

Why are ALUs still serial?

One of the most common optimizations used in modern processors is to keep the silicon as busy as possible. Cache units access memory for the processor so other circuitry isn't tied up for the dozens ...
0 votes
2 answers
105 views

CPU test pins (test as a noun)

Looking at the FM2 socket for AMD processors I've noticed that there are some "test pins", i.e V22. What are they for? Is it possible to manage them, i.e for some led signaling?
1 vote
2 answers
154 views

Why does the CPU usage of a Beaglebone Black peak while running an infinite loop?

I am using a BeagleBone Black to trigger an ultrasonic sensor and expecting the Echo pin-connected GPIO to be sensed as HIGH by my program, but it almost crashes the system. ...
2 votes
2 answers
179 views

What happens after Return 0 in C on an embedded microcontroller? [duplicate]

In an embedded microcontroller programmed using C, generally the code body is placed within a continuous loop like while(1) in the main function so execution never ...
0 votes
1 answer
89 views

Multicore CPU design dilemma on reading from/writing to hardware devices

I have built a simple 8-bit processor with 16-bit address lines and 8-bit data lines; not the most efficient CPU architecture, but it does the job. As you might have guessed, this CPU is really simple:...
6 votes
5 answers
3k views

What happens if clock cycle is replaced with constant high voltage in a processor?

Would the data in registers change at light speed and maybe become unstable/undefined, or would the processor stop changing state altogether? This post says: To give all the gates time to change ...
1 vote
4 answers
314 views

How does a computer know when to "get" the output from the ALU?

Basically what the title says, I guess I've got some sort of misconception or somthing probably. The ALU can have, say, a ripple carry adder which doesn't produce its entire output all at the same ...

1
2 3 4 5
13