Questions tagged [computer-architecture]
Computer architecture refers to both the design of a computer's external interfaces (instruction sets) and a computer's internal implementation (microarchitecture). The goal of these design decisions is to optimize speed, power efficiency, size, or cost while satisfying constraints on the rest.
563 questions
9
votes
6
answers
1k
views
Estimating current draw for a single instruction
I am a software engineer concerned about current draw.
I am aware that there are ways to reduce the current draw of a program, for example:
using a hlt instruction ...
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 ...
-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.
3
votes
2
answers
5k
views
What is a hardware thread in RISC-V?
RISC-V PMP limits the physical addresses accessible by software running on a hart (hardware thread).
Source: edX course on Introduction to RISC-V, Chapter 4. Developing RISC-V, The Privileged ...
-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 ...
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 ...
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 ...
0
votes
0
answers
110
views
What mechanism prevents me from initializing multiple peripherals on the same GPIO pin?
Can I initialize multiple peripherals on the same GPIO pin?
For example, if I bind a GPIO with a peripheral, can I still manipulate this pin with the GPIO interface?
With pseudo-code:
...
4
votes
1
answer
405
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 ...
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 ...
-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 ...
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 ...
2
votes
1
answer
3k
views
The concept of DDR rank
I have an understanding of DDR rank which I think is incorrect. If someone could join the dots then there would be more clarity.
Here is what I know
A DDR rank is a 64bit interface consisting of x8 ...
0
votes
0
answers
105
views
Can I have some help compacting this?
I am trying to build a transistor computer, and I want to save as much resources as possible. However, I also want it to be practical, so I am implementing a binary-decimal conversion. In order to ...
1
vote
0
answers
164
views
How much faster is the ideal machine without the memory structural hazard versus the machine with the hazard?
I am learning computer architecture and organization. I have the following doubt. Given below is a question along with its solution but I think that the solution is wrong. You can see the question ...
3
votes
1
answer
481
views
With what stage of the branch instruction does the IF stage executes if the branch is taken?
I am learning computer architecture and organization. I have the following doubt. Given below is a question along with its solution but I think that the solution is wrong.
Consider an instruction ...
-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 ...
-2
votes
1
answer
886
views
Is bit stuffing done after 6 or 5 consecutive 1's? [closed]
I am learning computer architecture and organization. I have the following doubt.
I have read that in bit stuffing a 0 is inserted whenever 6 consecutive 1’s are encountered. However, it may be noted ...
0
votes
1
answer
469
views
Why is programmed I/O not suitable for high-speed data transfer?
I am learning about computer architecture and organization.
I have read that programmed I/O is not suitable for high-speed data transfer because it does not support synchronous mode of data ...
-2
votes
2
answers
187
views
Can synchronous data transfer be used for transferring large data in case of computer architecture and organization? [closed]
I am learning computer architecture and organization.
I have this confusion, can synchronous data transfer be used for transferring large data in case of computer architecture and organization?
I ...
2
votes
4
answers
1k
views
Why is asynchronous data transfer only suitable for slow devices?
I have read that asynchronous data transfer is wasteful of CPU time for slow devices like keyboard or mouse.
Then how is it possible that it is suitable only for slow devices like keyboard or mouse ...
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} &...
9
votes
3
answers
4k
views
Is it correct that in a hard disk both surfaces of each disk are capable of storing data?
I have read that in a hard disk both surfaces of each disk are capable of storing data except the top and bottom disk where only the inner surface is used. Is it correct if yes then why is are there ...
2
votes
1
answer
292
views
Average data transfer rate
I am learning computer architecture and organization I am stuck in the following question.
Consider a hard disk with sector size 1024 bytes, 5000 tracks per surface,
64 sectors per track, and 8 ...
0
votes
1
answer
1k
views
How to calculate the bandwidth of a synchronous bus with overlap in bus transfer and reading next data?
I am working through problems in Saylor Academy's computer architecture course. I can't understand how this kind of problem is solved:
Consider a 32-bit synchronous bus with f = 125 Mhz, an 8 nsec ...
1
vote
1
answer
119
views
Throughput increase/decrease by how much percent
I am learning computer architecture and organization. I am stuck in the following question. Can someone please help me?
The stage delays in a 5-stage pipeline are 300, 200, 100, 400 and 350
...
-1
votes
1
answer
162
views
How is the exponent expressed in single precision floating-point number representation using IEEE-754 format
I am learning computer architecture and organization. I am stuck in the following question. Can someone please help me?
How is the exponent expressed in single precision floating-point number ...
0
votes
2
answers
679
views
The minimum (negative) value of the exponent in decimal
I am learning computer architecture and organization. I am stuck in the following question. Can someone please help me?
For a floating-point representation with 35 bits in the mantissa and 15 bits in ...
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 ...
3
votes
2
answers
830
views
How are irrational numbers best represented and processed by computers?
My question is closely related to this one: How do computers understand decimal numbers?
However, that question deals with rational numbers only. I was wondering if irrational numbers can be ...
2
votes
2
answers
662
views
VHDL: port declaration design for a feedback signal
I am a Computer Engineering student currently learning computer architecture, and working on modeling a booth's algorithm in VHDL. My design hierarchy contains a datapath and a control unit. The ...
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 ...
0
votes
2
answers
500
views
VHDL: on variable declarations to act as register
I am currently a CPE student taking up computer architecture, learning how to model major computer components using VHDL. Currently, I am working on a shift register as a sub component for a top-level ...
0
votes
2
answers
393
views
Difference between ARM7 and intel i3, i5 & i7 processors
I am just starting out on a journey to understand microcontroller and microprocessor design. Have read briefly on their differences (ARM7 and Intel i3, i5 & i7).
Couldn't find any information on ...
2
votes
1
answer
164
views
Doubt in pipelining forwarding in MIPS
I am fairly new to computer architecture and having a tough time solving problems based on pipelining. I was trying to solve a problem from this pdf I found on Google
I have a doubt in part ...
0
votes
1
answer
524
views
Data flip flop - I don't understand its purpose
The data flip flop can delay operation based on the time of the cycle of the clock.
If the clock's cycle is fast, the DFF is useless because it's like an instant change.
Is it possible to change the ...
1
vote
0
answers
652
views
How to find Base CPU Time and Memory-Stall Time
The program described below runs on a multiple issue processor with a 3-level CPU cache, a 4 GHz clock frequency, and the following performance metrics:
Miss Penalty R/W
Data Miss Rate
Instruction ...
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 ...
0
votes
1
answer
487
views
Cache comparator usage
Referring to the photo below, in direct-mapping cache design, why we need a comparator to compare between the tag in the address and the tag in the cache?
Isn't a valid bit enough?
0
votes
1
answer
159
views
How do I set a value within an if statement using logic gates? [closed]
I have a value B that I want to set if a variable A = 1.
I know how to create the if statement by applying an AND gate on a 1 constant and A, but how do I set B within that if statement using logic ...
0
votes
2
answers
369
views
How do I create a 1-bit full adder that outputs a 2-bit sum?
I am trying to build a 1-bit full adder that outputs a 2-bit sum.
I know that the standard 1-bit FA outputs a 1-bit sum and a carry bit, but I was wondering how can I modify the FA such that the carry ...
-4
votes
2
answers
1k
views
Building a 2x8 memory using flip-flops and logic gates
The image represents a 4x3 memory.Build a 2x8 memory.
-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 ...
0
votes
3
answers
89
views
Would this type of design be scale-able? [closed]
With current technologies within a modern system, we have pushed the limits of computations within the CPU portion of the system where it now exceeds that of the memory units. Moving memory is slow ...
0
votes
2
answers
1k
views
What is the origin of the "iso [frequency/voltage/power]" terminology?
In the VLSI and computer architecture world, it is common to hear terms like "iso frequency" or "iso power" when comparing the performance of different designs.
My understanding is ...
3
votes
2
answers
182
views
Soft errors from SEUs/SETs in early 8-bit microprocessors?
Why is it that soft errors due to single-event upsets/transients never seemed to be a problem in early 8-bit microprocessors, like the MOS 6502 or the Zilog Z80? The microprocessors themselves were ...
1
vote
3
answers
155
views
Has there been any deliberate implementation of combinational logic soft error correction in any consumer-level product, like a CPU/microcontroller? [closed]
Prologue
It is well known that many error detection, mitigation, and correction methods, such as parity or ECC, have been available in large memory banks, like for RAM, for decades now, and even in ...
0
votes
2
answers
378
views
Clarification of "strobe pin" 4-bit latch/4 to 16 line decoder
I'm wondering if I can get a specific behavior out of this chip. I have read the data sheet and am having some trouble understanding the usage of the Strobe pin.
CD4515BM96 Datasheet PDF
USE CASE
I'm ...
0
votes
2
answers
768
views
How do USB cameras encode video streams to be sent over USB? [closed]
Generic USB cameras can be used plug-and-play without the need for any additional drivers. How is the video stream compressed and sent over a USB connection? What are the standardized drivers that ...
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 ...