add 1clk latency for memory