📄 frbufctl.v
字号:
`include "SaveFrameBuf.v"
`include "TxFrameBuf.v"
`include "CtlFB.v"
module FrBufCtl( CLKM, ResetN,
//input
bInfo, bProg, bDZTS, FValid, RxFsync, RxDen, Rx_DB,
DOB, EPGDataReq, CompDZTS_End,
//output
RxDaMux, CompDZTS_En, DIA, CLKA, CLKB, ADDRA, ADDRB,
WEA, EPGData, EPGWrEn, EPGAddr, EPGTxEn
);
input CLKM;
input ResetN;
input bInfo;
input bProg;
input bDZTS;
input FValid;
input RxFsync;
input RxDen;
input [15:0] Rx_DB;
input [15:0] DOB;
input EPGDataReq;
input CompDZTS_End;
output RxDaMux;
output CompDZTS_En;
output [15:0] DIA;
output CLKA;
output CLKB;
output [9:0] ADDRA;
output [9:0] ADDRB;
output WEA;
output [15:0] EPGData;
output EPGWrEn;
output EPGAddr;
output EPGTxEn;
wire EPGTxEnd;
wire BufEmpty;
wire [6:0] FB_WAddr;
wire [6:0] FB_RAddr;
wire [2:0] WRCS;
wire [2:0] RDCS;
assign ADDRA = {WRCS, FB_WAddr};
assign ADDRB = {RDCS, FB_RAddr};
SaveFrameBuf U1( .CLKM(CLKM),
.ResetN(ResetN),
//input
.bInfo(bInfo),
.bProg(bProg),
.FValid(FValid),
.FSync(RxFsync),
.Den(RxDen),
.bDZTS(bDZTS),
.BufEmpty(BufEmpty),
.Rx_DB(Rx_DB),
.CompDZTS_End(CompDZTS_End),
//output
.Rx_SelLW(RxDaMux),
.CompDZTS_En(CompDZTS_En),
.FB_DB(DIA),
.FB_WR(CLKA),
.FB_WAddr(FB_WAddr),
.FB_WEN(WEA),
.SaveBufFull(SaveBufFull)
);
TxFrameBuf U2( .CLKM(CLKM),
.ResetN(ResetN),
//input
.EPGDataReq(EPGDataReq),
.FB_RDB(DOB),
//output
.EPGData(EPGData),
.EPGWrEn(EPGWrEn),
.EPGAddr(EPGAddr),
.FB_RD(CLKB),
.FB_RAddr(FB_RAddr),
.EPGTxEnd(EPGTxEnd)
);
CtlFB U3( .CLKM(CLKM),
.ResetN(ResetN),
//input
.SaveBufFull(SaveBufFull),
.EPGTxEnd(EPGTxEnd),
//output
.BufEmpty(BufEmpty),
.EPGTxEn(EPGTxEn),
.WRCS(WRCS),
.RDCS(RDCS)
);
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -