Update wolf_goat_cabbage.sv
authorClaire Wolf <claire@symbioticeda.com>
Wed, 22 Apr 2020 17:21:15 +0000 (19:21 +0200)
committerClaire Wolf <claire@symbioticeda.com>
Wed, 22 Apr 2020 17:21:15 +0000 (19:21 +0200)
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
docs/examples/puzzles/wolf_goat_cabbage.sv

index 4c034cf1e858a7a6e67943e75ead03db872ceceb..f1871213515fbbe2e7afdb3bc467cf88ba6cf928 100644 (file)
@@ -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;