'd0: if ( c3_calib_done == 1'b1 && key_wr_r == 2'b10 )
state <= 'd1;
'd1: if ( mcb_cmd_full == 1'b0 )
begin
mcb_cmd_instr <= 3'b000;
mcb_cmd_en <= 1'b0;
mcb_cmd_bl <= 'd63;
state <= 'd2;
app_wr_addr <= app_wr_addr_r;
end
else begin
state <= 'd1;
mcb_cmd_en <= 1'b0;
end
'd2: if ( mcb_cmd_full == 1'b0 )
begin
mcb_cmd_en <= 1'b1;
state <= 'd3;
wr_start_flag <= 1'b1;
end
'd3: begin
mcb_cmd_en <= 1'b0;
if ( write_data_end == 1'b1 )
begin
wr_start_flag <= 1'b0;
app_wr_addr_r <= app_wr_addr_r + 'd1024;
//state <= 'd4;
state <= 'd1;
end
end