Skip to content

Commit

Permalink
Merge pull request #1 from zhihanxu/zhihanxu-patch-1
Browse files Browse the repository at this point in the history
Update 4 - If statement Latches.v
  • Loading branch information
zhihanxu authored Jul 7, 2021
2 parents f46501c + 391dd32 commit 9117247
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 4 - Procedures/4 - If statement Latches.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ module top_module (
always @(*) begin
if (cpu_overheated)
shut_off_computer = 1;
else
shut_off_computer = 0;
end

always @(*) begin
if (~arrived)
keep_driving = ~gas_tank_empty;
else
keep_driving = 0;
end

endmodule

0 comments on commit 9117247

Please sign in to comment.