📄 output_fifo_rev0.1.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
// 0.1 12/06/04 - Update to Fit read_sm
// - Fill in FIFO I/O
// - Remove extclk as it is unused
// - Remove rd_en and add are, nce
//
// ////////////////////////////////////////////////
`timescale 1ns / 10ps
module output_fifo(
sysclk, // FPGA System Clock
rst, // Asynchronous Active Low Reset
are, // Asynchronous Read Enable
nce, // Active Low Chip 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 rst; // Asynchronous Active Low Reset
input wr_en; // Write Enable
input are; // Asynchronous Read Enable
input nce; // Active Low Chip 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 to FIFO
//
// Registers & Wires
//
wire [12:0] dout; // Data Output
wire [12:0] fifo_dout; // FIFO Data Output
//
// Behavioral Description
//
// Instantiate Read State Machine
read_sm read_sm(
.sysclk(sysclk),
.rst(rst),
.empty(empty),
.are(are),
.nce(nce),
.rd_fifo(rd_fifo),
.din(fifo_dout),
.dout(dout),
.error(error)
);
// Instantiate FIFO
fifo ofifo(
.clk(sysclk),
.din(din),
.wr_en(wr_en),
.rd_en(rd_fifo),
.rst(rst),
.dout(fifo_dout),
.full(full),
.empty(empty)
);
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -