?? yuv422_to_444.v
字號:
module YUV422_to_444 ( // YUV 4:2:2 Input
iYCbCr,
// YUV 4:4:4 Output
oY,
oCb,
oCr,
// Control Signals
iX,
iCLK,
iRST_N );
// YUV 4:2:2 Input
input [15:0] iYCbCr;
// YUV 4:4:4 Output
output [7:0] oY;
output [7:0] oCb;
output [7:0] oCr;
// Control Signals
input [9:0] iX;
input iCLK;
input iRST_N;
// Internal Registers
reg [7:0] mY;
reg [7:0] mCb;
reg [7:0] mCr;
assign oY = mY;
assign oCb = mCb;
assign oCr = mCr;
always@(posedge iCLK or negedge iRST_N)
begin
if(!iRST_N)
begin
mY <= 0;
mCb <= 0;
mCr <= 0;
end
else
begin
if(iX[0])
{mY,mCr} <= iYCbCr;
else
{mY,mCb} <= iYCbCr;
end
end
endmodule
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -