coding style example

mail@pastecode.io avatar
unknown
verilog
2 years ago
466 B
1
Indexable
Never
always @* begin
        case(last_change)
            // keyboard '0'
            9'h45 : begin
                out1_next = 4'd0;
                out2_next = 4'd0;
                out3_next = 4'd0;
                out4_next = 4'd0;
                end
            // keyboard '1'
            9'h16: begin
                out1_next = 4'd0;
                out2_next = 4'd0;
                out3_next = 4'd0;
                out4_next = 4'd1;
            end