Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Lab_1.md #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lab_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


## Lab 1 – Learning System Verilog with Verilator and Vbuddy
##### *Peter Cheung, v1.2 - 28 Oct 2022*
##### *Peter Cheung, v1.3 - 28 Oct 2022*

---
## Objectives
Expand Down Expand Up @@ -263,7 +263,7 @@ module counter #(

always_ff @ (posedge clk)
if (rst) count <= {WIDTH{1'b0}};
else count <= ld ? v : count + {{WIDTH-1{1'b0}},1'b1}
else count <= ld ? v : count + {{WIDTH-1{1'b0}},1'b1};
endmodule
```

Expand Down Expand Up @@ -318,4 +318,4 @@ bin2bcd myDecoder (
endmodule
```
Modify the testbench file **_top_tb.cpp_** accordingly.
Modify the **_doit.sh_** file from task 3 to include all the modules (**_top.sv, counter.sv, bin2bcd.sv_** and **_top_tb.sv_**). Compile and run the Verilated model. Check that it works according to expectation.
Modify the **_doit.sh_** file from task 3 to include all the modules (**_top.sv, counter.sv, bin2bcd.sv_** and **_top_tb.cpp_**). Compile and run the Verilated model. Check that it works according to expectation.