Questions tagged [instruction-set]

20 questions
2
votes
1 answer

Is a CPU with a hybrid Instruction Set Architecture (ISA) possible?

Is it possible to (theoretically) develop a CPU having a hybrid ISA such that half of the cores in it use the x86 architecture and the other half uses the ARM architecture? The x86 cores would run the x86 instructions that the CPU receives, while…
ArijitKD
  • 23
  • 3
1
vote
0 answers

Does newer CPU includes instruction set for popular hash and crypto algorithms

I mean since the algorithms like SHA256, MD5, AES, RSA are so widely used, so do these kind of popular algorithm get their special instruction set hardwired in newer CPU ? And if they do, how fast do they get, I mean do they go from 1000s of clock…
user204682
  • 11
  • 2
1
vote
0 answers

Load Store Hazard

I recently had an interview to identify all of the hazards in the following instruction set. I was told by the interviewer that there was some hazard between instructions i3 and i4 and it's not a RAW hazard on R4 so I'm a little lost. Any insight?…
johnbon
  • 11
  • 1
1
vote
0 answers

Learn computer architecture and organisation via an oversimplified machine

I wish to learn CO&A (computer organisation and architecture) from scratch via some toy system and its simulator. I found the following resource: Toy Machine developed at Princeton University. Toy Machine, however, is quite old and although a good…
anurag
  • 111
  • 2
1
vote
1 answer

how to get the high 32-bit of the answer of two 32-bit integer multiple?

Recently, I study the instruction set of riscv32 and face a order as "mulh" which tends to multiply two 32-bits signed integers and store the high 32 value into the register. And here comes the problem, there are two integer src1 and src2, I want to…
1
vote
1 answer

How are processor instructions stored in RAM?

I've recently been designing a simple 8-bit microprocessor, similar to the Intel 8008. It doesn't make use of anything advanced as pipelining, as my knowledge isn't at that level yet to know how to implement it. The address length of 14 bits, and an…
1
vote
2 answers

How does instruction set architecture affects clock rate?

According to the computer organization and design RISC-V 2nd edition 2020, section 1.5, the following table states that ISA affects clock rate. Hardware or software component Affects what? How? Algorith instruction count, CPI The algorithm…
user153245
  • 109
  • 5
1
vote
2 answers

How can an instruction be fetched every cycle?

From what I understand, in a pipelined CPU, every stage takes 1 cycle. But instructions are fetched from memory which takes up to ~150 cycles. The CPU fetches most instructions from the L1-cache, but I've read that it takes around 4 cycles. From…
seb
  • 13
  • 3
1
vote
2 answers

What kind of binary compatibility is present for 2 processors sharing an Instruction Set?

Consider Intel x86 and AMD x86 Processors. As I understand, since they use the same Instruction Set, in theory an application compiled for Intel x86 processor would run without any modification on AMD x86 processor, even though these processors…
Shashank V M
  • 409
  • 3
  • 24
0
votes
0 answers

0 address instruction format for subtraction

Suppose we want to subtract (3-2) using the 0 address instruction format.The code will be push 2 push 3 sub or push 3 push 2 sub And what about other logical instructions(NOT,AND,OR,XOR) , how can we apply them to 0 address instruction format?
Root Groves
  • 141
  • 3
0
votes
1 answer

Assembly question ISA

I am studying for a exam in Computer Architecture and one of the exercises says this: write the assembly code which calculates the equation of D=(A+B)/4+C.The ISA of the processor has the following set of instructions: MOV,ADD,SUB,MUL,DIV,LOAD,STORE…
0
votes
0 answers

How does the BIOS teletype routine work?

I am writing an OS. I am not a computer scientist, I am a physicist, so my understanding of computing is limited enough that I don't yet know how to ask the right questions. I am looking for either a response to the following or guidance towards…
0
votes
0 answers

How simple addition operation performed with just one instruction by BitBitJump?

According this: https://en.m.wikipedia.org/wiki/One-instruction_set_computer Its instruction has 3 operands, the meaning is: copy the bit addressed by a to the bit addressed by b and jump to the address c. So, how do addition works by only one…
0
votes
3 answers

How many operands does the NOP instruction have?

At first I thought it is obvious, since the NOP instruction does not have any operand, we say it is zero-operand instruction. But then looking on the zero-operand instruction, But looking after the definition I am confused to classify the…
tbhaxor
  • 208
  • 1
  • 12
0
votes
1 answer

What is the reason or advantage of having special purpose status flags for the result of comparisons?

The C semantics treat the result of a comparison or any true/false operation as just an int with value 1 for true or 0 for false. This is simple and intuitive. However, mainstream processors do not work this way. Comparison instructions do not…
CPlus
  • 209
  • 1
  • 10
1
2