OpenCores
URL https://opencores.org/ocsvn/mpmc8/mpmc8/trunk

Subversion Repositories mpmc8

[/] [mpmc8/] [trunk/] [rtl/] [mpmc10/] [mpmc10_app_en_gen.sv] - Diff between revs 10 and 11

Show entire file | Details | Blame | View Log

Rev 10 Rev 11
Line 46... Line 46...
 
 
// app_en latches the command and address when app_rdy is active. If app_rdy
// app_en latches the command and address when app_rdy is active. If app_rdy
// is not true, the command must be retried.
// is not true, the command must be retried.
always_ff @(posedge clk)
always_ff @(posedge clk)
begin
begin
        en <= FALSE;
        en <= 1'b0;
        if (state==WRITE_DATA1)
        if (state==WRITE_DATA1)
                en <= TRUE;
                en <= 1'b1;
        else if (state==WRITE_DATA2 && !en)
        else if (state==WRITE_DATA2 && !rdy)
                en <= TRUE;
                en <= 1'b1;
        else if (state==READ_DATA0)
        else if (state==READ_DATA0)
                en <= TRUE;
                en <= 1'b1;
        else if (state==READ_DATA1 && !(rdy && strip_cnt==num_strips))
        else if (state==READ_DATA1 && !(rdy && strip_cnt==num_strips))
                en <= TRUE;
                en <= 1'b1;
end
end
 
 
endmodule
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.