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

Subversion Repositories mpmc8

[/] [mpmc8/] [trunk/] [rtl/] [mpmc10/] [mpmc10_app_wdf_end_gen.sv] - Diff between revs 5 and 10

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 5 Rev 10
Line 36... Line 36...
//
//
import mpmc10_pkg::*;
import mpmc10_pkg::*;
 
 
module mpmc10_app_wdf_end_gen(clk, state, rdy, strip_cnt, num_strips, wend);
module mpmc10_app_wdf_end_gen(clk, state, rdy, strip_cnt, num_strips, wend);
input clk;
input clk;
input [3:0] state;
input mpmc10_state_t state;
input rdy;
input rdy;
input [5:0] strip_cnt;
input [5:0] strip_cnt;
input [5:0] num_strips;
input [5:0] num_strips;
output reg wend;
output reg wend;
 
 
// app_wdf_wren is used to strobe data into the data fifo when app_wdf_rdy is
// app_wdf_wren is used to strobe data into the data fifo when app_wdf_rdy is
// true.
// true.
always_ff @(posedge clk)
always_ff @(posedge clk)
begin
begin
        wend <= mpmc10_pkg::FALSE;
        wend <= FALSE;
        if (state==mpmc10_pkg::WRITE_DATA0 && rdy)
        if (state==WRITE_DATA3)
                wend <= strip_cnt==num_strips;
                wend <= strip_cnt==num_strips;
end
end
 
 
endmodule
endmodule

powered by: WebSVN 2.1.0

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