Skip to content

Commit 774afca

Browse files
TyjihnLucy ZhengNoahms12
authored
docs(dn): Lucy Zheng 10/26/2025 (#419)
Co-authored-by: Lucy Zheng <[email protected]> Co-authored-by: Noahms12 <[email protected]>
1 parent dab488f commit 774afca

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/design_notebooks/2025fall/lz3007.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,15 @@ The biggest problem that I encountered while writing the testbench was the veril
9696

9797
[GitHub: Data Memory Testbench](https://github.com/Ghqlq/Processor-Design-Projects/blob/main/data_memory_tb2.v)
9898

99-
**Notes:** Wires cannot be declared inside an intial block. However, registers and integers can, but only at the top, before any executable statements.
99+
**Notes:** Wires cannot be declared inside an intial block. However, registers and integers can, but only at the top, before any executable statements.
100+
101+
## Week 7: 10/20/2025 - 10/26/2025
102+
103+
* Completed Control and Data Memory modules
104+
* Passed all testcases for the Control module, using the provided testbench
105+
106+
The Control module selects the value of the output signals: WErf, WEdmem, MUXalu1, MUXalu2, MUXrf, MUXtgt, FUNCalu, and MUXpc, based on the opcode input and the EQ signal (only for MUXpc). The first step was to find the corrosponding opcodes to the instructions using the [instruction set](https://user.eng.umd.edu/~blj/risc/RiSC-isa.pdf). The output signals were found by looking at the "Instruction Dataflow" diagrams for each instruction found in the [sequential implementation document](https://user.eng.umd.edu/~blj/risc/RiSC-seq.pdf). Another useful part of the document was the "Putting it all together" section that shows which modules the signals are sent to and describes what the signals are used for in the modules.
107+
108+
[GitHub: Control Module Code](https://github.com/Ghqlq/Processor-Design-Projects/blob/main/control2.v)
109+
110+
**Notes:** There were some modules that were not used for some instructions and I was not sure if I needed to set the value of the signals that corrolate to the unused modules.

0 commit comments

Comments
 (0)