// // NON-WORKING // LED toggle example // probably because LED is controlled by two blocks // module led_toggle_nonwork( input clk_i, input key_i, input rst_i, output reg [5:0] led ); always @(negedge rst_i) begin if (!rst_i) led <= 6'b111111; end always @(negedge key_i) begin if (!key_i) led[0] <= ~led[0]; end endmodule