From b26d4e63629355a4c51220662dafdf81839ce1fe Mon Sep 17 00:00:00 2001 From: Claire Wolf Date: Wed, 22 Apr 2020 19:21:15 +0200 Subject: [PATCH] Update wolf_goat_cabbage.sv Signed-off-by: Claire Wolf --- docs/examples/puzzles/wolf_goat_cabbage.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/puzzles/wolf_goat_cabbage.sv b/docs/examples/puzzles/wolf_goat_cabbage.sv index 4c034cf..f187121 100644 --- a/docs/examples/puzzles/wolf_goat_cabbage.sv +++ b/docs/examples/puzzles/wolf_goat_cabbage.sv @@ -10,10 +10,10 @@ module wolf_goat_cabbage (input clk, input w, g, c); reg bank_w = 0; // wolf reg bank_g = 0; // goat reg bank_c = 0; // cabbage - reg bank_p = 0; // person who drives the boat + reg bank_p = 0; // person always @(posedge clk) begin - // person travels and takes the selected item with him + // person travels and takes the selected item with them bank_p <= !bank_p; if (w && (bank_w == bank_p)) bank_w <= !bank_p; if (g && (bank_g == bank_p)) bank_g <= !bank_p; -- 2.30.2