URL
https://opencores.org/ocsvn/rtfbitmapcontroller/rtfbitmapcontroller/trunk
Show entire file |
Details |
Blame |
View Log
Rev 16 |
Rev 23 |
Line 1... |
Line 1... |
`timescale 1ns / 1ps
|
`timescale 1ns / 1ps
|
// ============================================================================
|
// ============================================================================
|
// __
|
// __
|
// \\__/ o\ (C) 2008-2015 Robert Finch, Stratford
|
// \\__/ o\ (C) 2008-2018 Robert Finch, Waterloo
|
// \ __ / All rights reserved.
|
// \ __ / All rights reserved.
|
// \/_// robfinch<remove>@finitron.ca
|
// \/_// robfinch<remove>@finitron.ca
|
// ||
|
// ||
|
//
|
//
|
//
|
//
|
Line 24... |
Line 24... |
// Verilog 1995
|
// Verilog 1995
|
//
|
//
|
// ============================================================================
|
// ============================================================================
|
//
|
//
|
module rtfVideoFifo3(wrst, wclk, wr, di, rrst, rclk, rd, dout, cnt);
|
module rtfVideoFifo3(wrst, wclk, wr, di, rrst, rclk, rd, dout, cnt);
|
|
parameter WID=128;
|
input wrst;
|
input wrst;
|
input wclk;
|
input wclk;
|
input wr;
|
input wr;
|
input [127:0] di;
|
input [WID-1:0] di;
|
input rrst;
|
input rrst;
|
input rclk;
|
input rclk;
|
input rd;
|
input rd;
|
output [127:0] dout;
|
output [WID-1:0] dout;
|
output [7:0] cnt;
|
output [7:0] cnt;
|
reg [7:0] cnt;
|
reg [7:0] cnt;
|
|
|
reg [7:0] wr_ptr;
|
reg [7:0] wr_ptr;
|
reg [7:0] rd_ptr,rrd_ptr;
|
reg [7:0] rd_ptr,rrd_ptr;
|
reg [127:0] mem [0:255];
|
reg [WID-1:0] mem [0:255];
|
|
|
wire [7:0] wr_ptr_p1 = wr_ptr + 8'd1;
|
wire [7:0] wr_ptr_p1 = wr_ptr + 8'd1;
|
wire [7:0] rd_ptr_p1 = rd_ptr + 8'd1;
|
wire [7:0] rd_ptr_p1 = rd_ptr + 8'd1;
|
reg [7:0] rd_ptrs;
|
reg [7:0] rd_ptrs;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.