Only basing new games on clock

This commit is contained in:
Yannick Reiß 2024-03-18 21:38:20 +01:00
parent 89310866d0
commit fa5e260576
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 61 additions and 62 deletions

View File

@ -52,7 +52,7 @@ module tt_um_yannickreiss_lights_out (
if (rst_n == 1'b1) begin
// Do act normal
case ( buttons )
case (buttons)
9'b000000001: begin
field1 <= !field1;
field2 <= !field2;
@ -108,19 +108,18 @@ module tt_um_yannickreiss_lights_out (
end
endcase
end
else begin
end else begin
// set new matrix in a pseudo random way
field1 <= clk & field6;
field1 <= clk;
field2 <= !clk;
field3 <= clk;
field4 <= !field4;
field5 <= !field5 ^ clk;
field4 <= !clk;
field5 <= clk;
field6 <= clk;
field7 <= !clk;
field8 <= field2;
field9 <= !field7;
field8 <= clk;
field9 <= !clk;
end
end
end