Return to course page

Quiz on fifth week's material.

Question 1: Given the following HCL2D, which of the following signals are not initialized that need to be initialized in order for it to compile? Note that there may be other signals that need to be initialized beyond those listed here.

pc = 0;
reg_srcA = REG_RAX;
reg_dstE = REG_RBX;
  1. a register to store the PC

  2. reg_outputA

  3. reg_srcB

  4. reg_inputE

  5. reg_dstM

When running a simulator created using HCL2D,

Question 2: (see above) If I want to have it pause between each step I give it

  1. the -i flag

  2. the -d flag

  3. the -q flag

  4. none of the above

Question 3: (see above) If I want to see every wire's value I give it

  1. the -i flag

  2. the -d flag

  3. the -q flag

  4. none of the above

Question 4: The minimal set of signals you need to set for a simulator to run contains which of the following?
Select all that apply

  1. pc

  2. Stat

  3. i10bytes

  4. reg_srcA and/or reg_srcB

  5. reg_dstE and/or reg_dstM

  6. reg_inputE and/or reg_inputM

  7. mem_writebit and/or reg_readbit

  8. mem_addr

  9. mem_input

Return to main page
Return to course page