wirets_rstb=raw_mode?raw_ts_copy:(last_block&&!last_block_d);// enough time to have timestamp data; // one cycle before getting timestamp data from FIFO
// wire ts_rstb= raw_mode ? raw_ts_copy: (last_block && !last_block_d); // enough time to have timestamp data; // one cycle before getting timestamp data from FIFO
wirets_rstb=(raw_mode&&raw_ts_copy)||(compressed_mode&&last_block&&!last_block_d);// enough time to have timestamp data; // one cycle before getting timestamp data from FIFO
wire[7:0]ts_dout;// timestamp data, byte at a time
wirewrite_size=(in_stb&&(bytes_in!=0))||(flush&&last_stb_4);// TODO: never in raw mode?
assignpage_start=!page_run&&buf_ready_w&&frame_pre_run&&(starting&&stuffer_running);// frame_pre_run should deassert in time with frame end
// assign page_start = !page_run && buf_ready_w && ((frame_pre_run && starting && stuffer_running) || !frame_done); // frame_pre_run should deassert in time with frame end
assignpage_start=!page_run&&buf_ready_w&&frame_pre_run&&((starting&&stuffer_running)||!frame_done);// frame_pre_run should deassert in time with frame end
regpage_end_r;
// reg page_restart_r;
assignraw_start=frame_pre_start_r;// for JP - leading edge of color_first