📄 output_fifo_rev0.0.v
字号:
////////////////////////////////////////////////////
//
// Module Name: output_fifo
// Descr: Output FIFO Control
// Author: James Rosenthal
// Date: 11/15/04
//
//
// Version Date Modifications
// ---------------------------------
// 0.0 11/15/04 Initial
//
// ////////////////////////////////////////////////
`timescale 1ns / 10ps
module output_fifo(
sysclk, // FPGA System Clock
extclk, // External Clock
rst, // Asynchronous Active Low Reset
rd_en, // Read Enable
wr_en, // Write Enable
din, // Data Input
dout, // Data Output
full, // Full Flag
empty, // Empty Flag
error // Error on Read or Write
);
//
// Inputs & Outputs
//
input sysclk; // System Clock
input extclk; // External Clock
input rst; // Asynchronous Active Low Reset
input rd_en; // Read Enable
input wr_en; // Write Enable
input [12:0] din; // Data Input
output [12:0] dout; // Data Output
output full; // Full Flag
output empty; // Empty Flag
output error; // Invalid Read or Write to FIFO
//
// Registers & Wires
//
//
// Behavioral Description
//
// Instantiate Read State Machine
read_sm read_sm(
.sysclk(sysclk),
.extclk(extclk),
.rst(rst),
.empty(empty),
.rd_en(rd_en),
.rd_fifo(rd_fifo),
.din(fifo_dout),
.dout(dout),
.ready(ready),
.error(error)
);
// Instantiate FIFO
fifo ofifo(
.clk(sysclk),
.din(),
.wr_en(),
.rd_en(),
.rst(),
.dout(),
.full(full),
.empty(empty)
);
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -