hhh
what advantage does harvard have over a von neuman computer
does not have a instruction/data memory performance bottleneck
an unusual condition caused by executing an instruction in a program,
exception
which statements are true about global variables
increases the size of a.out file, allocated at compile time, allocated in data section.
an unexpected event external to the program that requires the processors attention
interrupt
which statement about using interrupts over polling IO subroutine is false
is blocking, your program must pause while waiting for the status to update
the instruction below indicated that the basic architecture of a processor is
load store
a risc processor is considered a string form of a
load store architecture
defines how the memory regions are used
memory map
an interrupt that is active, but not yet trapped is
pending
the design philosophy of a cisc processor focuses on
reduced number of instruction in a program
what happened if you add 2 positive values and your answer is negative number
sign overflow
which instruction would follow the highlighted data paths
slli t0, t0, 5
what is the main difference between harvard and von neumann and architectures?
there are separate memories for instructions and data
detects an unusual condition and transfers control to the appropriate service routine.
trap
a carry overflow of a signed value indicates an error
true
if you pass a struct to a function as an argument, you pass a copy of the entire structure
true
which statement about using polling IO subroutine over interrupts is false
uses the trap mechanism to communicate eithe mmio device
a program with self modifying code can only execute on a
von neuman architecture
what riscv assembler directive sets aside 4 bytes of memory location and initializes it to a given value
.word
a char datatype is what size
1 byte
what is the decimal value -9 as an 8 bit binary value
1111 0111
what is the following hexadecimal value in binary 0xfa206b19
1111 1010 0010 0000 0110 1011 0001 1001
if we sign extend the 4 digit binary number 1010 to 16 bits, we get what number
1111111111111010
on a riscv processor, how many bytes are allocated for a variable of type Person.
12
a integer datatype is what size
4 bytes
which phases of the instruction cycle are common to all instructions?
Fetch, decode
what bitwise logical operater is used to set a specific bit to 1
OR
a device sent an interrupt to the processor, but is never trapped when the processor is checking for interrupts. where is the problem likely to be
UIE external interrupt enable not set correctly
indicates total size of memory
address space
indicates the size of data at a given location in memory
adressability
which of the following statements about risc computer are false
all of these are true
which statement about exceptions is false
all statements are true
which of the following riscv instructions would you used to clear bit 4 of a register in a single instruction
andi