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
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 ...
2
votes
3
answers
566
views
Getting CPU clock signal out of computer (as to measure externally) [closed]
I've been searching on the internet some clock generator module capable of reaching up to 1GHz, when I just realized that the machine I'm using to search has one CPU with its own 2.5-3.0 GHz clock... ...
2
votes
3
answers
532
views
Curious how does ALU addressing work like in Assembly code?
When writing assembly code, say R1 = R2 + R3, it is pretty easy to understand the addressing procedure because all registers are close to the ALU. But I find it hard to see how does the ALU go to the ...
2
votes
2
answers
130
views
Can components like EPROM or NE 555 timer be built from scratch?
I was watching some videos on building an 8-bit computer and plan to do so myself, however, I wondered if it was possible to make something like an EPROM or 555 timers from scratch using basic ...
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 ...
2
votes
1
answer
750
views
BJT transistor max switching frequency vs FET in high frequency computer architecture
Why arent BJTs used with RISC architectures to produce very high speed relatively sparse CPUs? My understanding is that BJTs don't have the forward bias gate capacitance requirements of FETs which is ...
2
votes
2
answers
1k
views
Implementation of a 8-to-256 decoder using BJTs
I'm designing an 8-to-256 decoder for an SRAM module I'm building for an home-made 8-bit BJT computer.
This is what I've got, which is the straightforward and trivial way:
However, the design ...
2
votes
2
answers
22k
views
What is the difference between full and partial address decoding?
Could someone please explain the difference between full address decoding and partial address decoding?
I am reading the chapter on digital logic in "Structured Computer Organization", 6th ed. by ...
2
votes
2
answers
201
views
Where can I find common circuitry implementations of different computer system components?
Mostly out of interest, I'm trying to understand common circuit-level implementations of computer components. I understand that implementations may differ widely, but I'd like to see examples. It ...
2
votes
1
answer
393
views
What happens if a process needs more pages than number of entries in page table?
I am having a little trouble understanding the concept of paging. Below is a simple example to illustrate my question.
Suppose main memory has 128 bytes, organized into 32 pages of size 4 bytes each, ...
2
votes
1
answer
2k
views
Making a toy DSP processor
When I was trying to learn computer architecture the thing that helped me the most was making a toy 4-bit processor (through gate level design of every single thing). Now I want to learn about DSP ...
2
votes
1
answer
1k
views
What provides the clock signal in CSI2 interface?
What provides the clock signal for the CSI2 interface used for many cameras? Does the camera provide it or is it the processor the camera is interfacing to?
2
votes
1
answer
286
views
Is it usual design that the addition operation in the arithmetic-logic unit is performed by default as other instructions are executed?
The book But How Do It Know? presents an 8-bit computer architecture in which arithmetic-logic instructions (that is, instructions which are executed by the ALU) have 1 as the most significant bit, ...
2
votes
2
answers
73
views
What does "Cycle \$\mu\$s" mean in this context?
I'm reading a paper about the architecture of the IBM system/360. There is a diagram which lays out the machine structure and implementation in the storage and control tables there is a metric which I ...
2
votes
2
answers
382
views
Why is a Flush needed in the MSI cache coherency protocol when moving from Modified to Invalid?
While studying the MSI protocol as described in different sources such as:
https://en.wikipedia.org/w/index.php?title=MSI_protocol&oldid=941977299
http://courses.csail.mit.edu/6.888/spring13/...
2
votes
2
answers
1k
views
How to deal with PS/2 keyboard input and CPU interrupts
First of all, I'm not sure if this is the right place to ask this question or not. It was either here or the Computer Science stack exchange site, but I thought perhaps it would be better posted here ...
2
votes
1
answer
279
views
misunderstanding of a Computer Architecture
I have the following architecture , and the timing diagram below . my question is , it's seem that no 'relation' or dependency between control logic and Extender , but at timing diagram , the time of ...
2
votes
1
answer
352
views
clarification about amdahl's law
A system is designed as a cascade of of 4 subsystems, each contributing the same amount of time to the average service time of the system. If we wish to increase the speed of the system by a factor ...
2
votes
3
answers
6k
views
address field and words of memory
"Consider as an example a typical computer of that era which might have had a 16 bit address field in its instructions and 4096 words of memory.A program on this computer could address 65536 words of ...
2
votes
1
answer
90
views
Can consumer NPU hardware be repurposed?
Limiting this to the current generation of consumer NPU hardware going into new PCs:
Can the NPU accelerator hardware being put in recent PCs practically be repurposed for non-AI tasks? And what ...
2
votes
1
answer
168
views
What is a chip generator?
I've been trying to learn more about the RISC-V environment. I've encountered a chip generator called Rocket Chip.
What is a chip generator, and how does it differ from a core? I'm trying to ...
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 ...
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 ...
2
votes
1
answer
1k
views
How does cache coherency and DMA work together?
I am currently reading about caches and how they are used in Computer Science. The explanation of how the cache is always up to date with the actual memory is understandable as long writing and ...
2
votes
1
answer
2k
views
How the lw (load word) instruction works on the MIPS Unicycle (Implementation)
I'm reading the Computer Organization and Design book from David A. Patterson and John L. Hennessy. Specifically, I have a question about the implementation of a MIPS Unicycle.
So, in the book, they ...
2
votes
1
answer
205
views
What could this PLA be doing?
The picture below shows a PLA, I have done part (a) and found out that;
$$
F_0 = A_0 \mathbin{\oplus} B_0 \\
F_1 = A_0B_0 + (\overline{A_0} + \overline{B_0})(A_1 \mathbin{\oplus} B_1) \\
F_2 = A_0B_0(...
2
votes
1
answer
8k
views
Three way set associative cache with LRU replacement
So I am going through a homework exercise, and I am not understanding the solution to the problem. We are given a sequence of memory references and we are to use a three-way set associative cache with ...
2
votes
2
answers
3k
views
What does "CL" stand for in this processor architecture block diagram?
I'm learning about pipelining but can't understand this abbreviation: "CL". You can see it in processors' schemes.
It is shown with with and without a line above it; what is the line for?
Diagram ...
2
votes
1
answer
2k
views
How to wire a system for Nios 2 in Qsys?
I've managed to reduce the number of errors but I still have some:
...
2
votes
2
answers
1k
views
Does anyone know the hardware of a Nike+ SportWatch GPS? [closed]
I have one of these devices and I would really love to figure out if it is possible to write and push my own firmware into the device. The software on the watch is pretty limited and I would like to ...
2
votes
1
answer
737
views
Electrical Engineering vs Computer Engineering? [closed]
I am trying to decide whether to major in EE or CE. To my knowledge, computer engineering has the same core focus as electrical engineering but with an emphasis on digital logic and microprocessors. ...
2
votes
1
answer
5k
views
Calculating range of two's complement
This is a computer architecture question given in our college syllabus and i was finding difficulty in solving it.
Calculate the range of a 16-bit 2's complement number system for representing both ...
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 ...
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 ...
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 ...
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 ...
2
votes
1
answer
232
views
68008 Main board Review [closed]
I'm building a retro computer around the 68008 CPU
The main board will be simple, The CPU, 1MB of RAM, and a 32kB ROM (Bios/boot rom)
here is the adress map
$000000 - $07FFFF : RAM0
$080000 - $...
2
votes
1
answer
871
views
Why does reading 1 byte from hard disk has the same speed as operation reading 1000 bytes?
Two operations:
read 1 byte from disk
read 1000 bytes from disk
Why exactly will they have approximately the same speed?
2
votes
1
answer
1k
views
Difference between reading data from fifo and the register
I am currently working on a hardware design as a part of my project in verilog.
I am fully aware that we usually use the registers to break the datapath which in turn helps us achieve timing closure. ...
2
votes
3
answers
907
views
Memory architecture and instruction storage - Naimi: AVR Microcontroller
LDI R16, 0x25 --> E 2 0 5 --> 1110 0010 0000 0101
Apparently, in AVR, the code and data are stored separately and each
area (code, data area) is accessed by a unique bus.
Now since the Program ...
2
votes
2
answers
211
views
Are neuromorphic computers considered digital computers?
This might be a pretty simple question, but I am wondering if neuromorphic computers using non Von Neumann architectures such as the IBM TrueNorth chip are still considered digital computers.
I have ...
2
votes
1
answer
189
views
Inherent exploitability and power state machines
I'm working on understanding power state machines in regard to mobile computing devices. Most of the information on this subject seems to stem from this article. It's not particularly important to the ...
2
votes
1
answer
313
views
Memory Organization in Computer
How is memory stored in a computer? Is it 1 bit per address so in order to get the value of an integer (32 bits) it must go through 32 addresses, get all the bits of 0's and 1's? I am a bit confused ...
2
votes
1
answer
1k
views
How to calculate index and tag fields lengths for a cpu cache?
I study computer engeering notes for a cache memory and I try to understand what determines the length of the index and the tag fields. The first examples is for 64 bits and the second example is for ...
2
votes
1
answer
355
views
Given a shift register- Create a circuit to check whether 4 first bits are equal to the last 4
I hope this is the place to ask such a question.
Given a shift register- within 8 clock pulses 8 bits will enter this register, I need to make a circuit with this register, and other 3 flip-flops ...
2
votes
2
answers
2k
views
MIPS Main Control Logic
In the Patterson & Hennessy book,
This is for these 4 instructions, if I need to implement instructions like andi, addi, ori, j, etc, do I add on to this table? Or do I do something else?
...
2
votes
1
answer
251
views
Differences in capacitive loads
I'm in school and I am trying to figure out a question for homework. It reads as stated:
Version
Voltage
Clock Rate
i.
Version 1
1.75V
1.5 GHz
Version 2
1.2V
2 GHz
ii.
Version 1
1.1V
3 GHz
...
2
votes
1
answer
3k
views
MIPS clock cycle calculation formula
How many clock cycles will take execution of this segment on the simple pipeline without forwarding or bypassing when result of the branch instruction (new PC content) is available after WB stage. ...
2
votes
0
answers
479
views
Digital Comparator from LSB to MSB using Lookahead
This is homework to be upfront, but I'm really stuck on it and just need some kind of direction. I've been assigned to create a 16-bit lookahead comparator going from LSB to MSB using no more than 4-...
2
votes
0
answers
248
views
Ling adder vs classic CLA adder what's the difference?
I'm practicing in designing vhdl unit with some "complex" computer arithmetic algorithm.
I've just implemented the following CLA unit below.
I'm reading through this book, page section 6.3 page 97, I ...