?? xil_rgb2ycrcb_tb.mdl
字號:
"sks\" />\n <item value=\"Everywhere in SubSystem\" />\n <item value=\"No "
"Where in SubSystem\" />\n </listbox>\n <listbox evaluate=\"true\" name=\"db"
"l_ovrd\" default=\"According to Block Masks\" label=\"Override with doubles\""
" >\n <item value=\"According to Block Masks\" />\n <item value=\"Everywhe"
"re in SubSystem\" />\n <item value=\"No Where in SubSystem\" />\n </listbo"
"x>\n <listbox evaluate=\"true\" name=\"core_generation\" default=\"According"
" to Block Masks\" label=\"Generate cores\" >\n <item value=\"According to B"
"lock Masks\" />\n <item value=\"Everywhere Available\" />\n <item value="
"\"Not Needed - Already Generated\" />\n </listbox>\n <checkbox evaluate=\"t"
"rue\" name=\"run_coregen\" default=\"off\" label=\"Run CoreGen\" />\n <check"
"box evaluate=\"true\" name=\"deprecated_control\" default=\"off\" label=\"Sho"
"w deprecated controls\" />\n <hiddenvar evaluate=\"true\" name=\"eval_field"
"\" default=\"0\" />\n </blockgui>\n</sysgenblock>\n"
}
Block {
BlockType SubSystem
Name "(c) Copyright 1995-2005 Xilinx, Inc.\n#-- All r"
"ights reserved."
Ports []
Position [225, 31, 350, 109]
DropShadow on
FontName "Arial"
FontSize 12
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('Double click \\nfor\\nCopyright Notice.')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "(c) Copyright 1995-2005 Xilinx, Inc.\n#-- All"
" rights reserved."
Location [355, 105, 1016, 526]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Annotation {
Name "Copyright(C) 2005 by Xilinx, Inc. All righ"
"ts reserved.\n\nThis file contains proprietary, confidential information of X"
"ilinx, Inc., is distributed under license\nfrom Xilinx, Inc., and may be used"
", copied and/or disclosed only pursuant to the terms of a valid license\nagre"
"ement with Xilinx, Inc. Xilinx hereby grants you a license to use this file s"
"olely for design,\nsimulation, implementation and creation of design files li"
"mited to Xilinx devices or technologies. Use \nwith non-Xilinx devices or tec"
"hnologies is expressly prohibited and immediately terminates your license \nu"
"nless covered by a separate agreement.\n\nXilinx is providing this design, co"
"de, or information \"as-is\" solely for use in developing programs and \nsolu"
"tions for Xilinx devices, with no obligation on the part of Xilinx to provide"
" support. By providing\nthis design, code, or information as one possible imp"
"lementation of this feature, application or standard,\nXilinx is making no re"
"presentation that this implementation is free from any claims of infringement"
". You\nare responsible for obtaining any rights you may require for your impl"
"ementation. Xilinx expressly disclaims\nany warranty whatsoever with respect "
"to the adequacy of the implementation, including but not limited to any\nwarr"
"anties or representations that this implementation is free from claims of inf"
"ringement, implied warranties\nof merchantability or fitness for a particular"
" purpose.\n\nXilinx products are not intended for use in life support applian"
"ces, devices, or systems. Use in such \napplications is expressly prohibited."
"\n\nAny modifications that are made to the Source Code are done at the user's"
" sole risk and will be unsupported. \n\nThis copyright and support notice mus"
"t be retained as part of this text at all times. \n(c) Copyright 1995-2005 Xi"
"linx, Inc. All rights reserved."
Position [6, 192]
HorizontalAlignment "left"
UseDisplayTextAsClickCallback off
FontName "Arial"
FontSize 12
}
}
}
Block {
BlockType Reference
Name "B"
Ports [1, 1]
Position [150, 274, 205, 296]
SourceBlock "xbsIndex_r4/Gateway In"
SourceType "Xilinx Gateway In Block"
infoedit "Gateway in block. Converts inputs of type Simu"
"link integer, double and fixed point to Xilinx fixed point type.<P><P>Hardwa"
"re notes: In hardware these blocks become top level input ports."
arith_type "Unsigned"
n_bits "10"
bin_pt "2"
quantization "Round (unbiased: +/- Inf)"
overflow "Saturate"
period "1"
dbl_ovrd off
timing_constraint "None"
locs_specified off
LOCs "{}"
xl_use_area off
xl_area "[0, 0, 0, 0, 0, 0, 0]"
has_advanced_control "0"
sggui_pos "20,20,356,414"
block_type "gatewayin"
block_version "VER_STRING_GOES_HERE"
sg_icon_stat "55,22,1,1,white,yellow,0,4bb76ffd"
sg_mask_display "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18 22 28 3"
"0 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 20 15 20"
" 17 11 5 2 7 2 2 4 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 22 22 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: begin"
" icon text ');\ncolor('black');port_label('input',1,'\\fontsize{11pt}\\bf In "
"','texmode','on');\ncolor('black');port_label('output',1,' ');\nfprintf('','C"
"OMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above this lin"
"e -- machine generated code. ');\n"
}
Block {
BlockType Reference
Name "Cb"
Ports [1, 1]
Position [425, 314, 480, 336]
SourceBlock "xbsIndex_r4/Gateway Out"
SourceType "Xilinx Gateway Out Block"
infoedit "Gateway out block. Converts Xilinx fixed point"
" inputs into ouputs of type Simulink integer, double, or fixed point.<P><P>Ha"
"rdware notes: In hardware these blocks become top level output ports or are "
"discarded, depending on how they are configured."
hdl_port on
timing_constraint "None"
locs_specified off
LOCs "{}"
xl_use_area off
xl_area "[0, 0, 0, 0, 0, 0, 0]"
has_advanced_control "0"
sggui_pos "-1,-1,-1,-1"
block_type "gatewayout"
block_version "VER_STRING_GOES_HERE"
sg_icon_stat "55,22,1,1,white,yellow,0,f0cec300"
sg_mask_display "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18 22 28 3"
"0 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 20 15 20"
" 17 11 5 2 7 2 2 4 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 22 22 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: begin"
" icon text ');\ncolor('black');port_label('input',1,' ');\ncolor('black');por"
"t_label('output',1,'\\fontsize{11pt}\\bf Out ','texmode','on');\nfprintf('','"
"COMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above this li"
"ne -- machine generated code. ');\n"
}
Block {
BlockType SubSystem
Name "ColorSpace Conversion RGB to YCrCb"
Ports [8, 6]
Position [230, 177, 395, 528]
DeleteFcn "xlDestroyGui(gcbh);"
LoadFcn "xlBlockLoadCallback(gcbh);"
ModelCloseFcn "xlDestroyGui(gcbh);"
PreSaveFcn "xlBlockPreSaveCallback(gcbh);"
PostSaveFcn "xlBlockPostSaveCallback(gcbh);"
DestroyFcn "xlDestroyGui(gcbh);"
OpenFcn "if (strncmp(xlGetSysgenVersion(), '8.1', 3)) x"
"lOpenGui(gcbh,which('Xil_RGB2YCrCb_GUI_81.xml'), @Xil_RGB2YCrCb_enablement, "
"@Xil_RGB2YCrCb_action); else\nxlOpenGui(gcbh,which('Xil_RGB2YCrCb_GUI.xml'), "
"@Xil_RGB2YCrCb_enablement, @Xil_RGB2YCrCb_action); end "
" "
CloseFcn "xlDestroyGui(gcbh);"
MoveFcn "xlBlockMoveCallback(gcbh);"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Xilinx Color Space Converter - RGB to YCrCb Blo"
"ck"
MaskDescription "simplified 3x3 constant coefficient matrix mult"
"iplication, using only 4 multipliers exploiting parameter interdependance."
MaskPromptString " |Standard Selection ||Input Range Selection||I"
"nput bits||Output bits||Y = R * | + G *| + B *|Cr = (R-Y) *|Cb "
"= (B-Y) *|Luma Offset value|Chroma Offset value|Outputs clipped||Luma Maximum"
" value|Chroma Maximum value|Outputs clamped||Luma Minimum value|Chroma Minimu"
"m value|Coefficient bits|Multiplier input bits|Use fabric for adders||Define "
"FPGA area for resource estimation||FPGA area [slices, FFs, BRAMs, LUTs, IOBs,"
" emb. mults, TBUFs]| | | | | | | | | | | | | | | | | | | | | "
MaskStyleString "edit,popup(YCrCb ITU 601 (SD)|YCrCb ITU 709 (HD"
") 1125/60 (PAL)|YCrCb ITU 709 (HD) 1250/50 (NTSC)|YUV|custom),edit,popup(16 -"
" 240 : TV|16 - 235 : Studio equipment|0 - 255 : Computer systems),edit,popup"
"(8|10|12),edit,popup(8|10|12),edit,edit,edit,edit,edit,edit,edit,edit,checkbo"
"x,edit,edit,edit,checkbox,edit,edit,edit,edit,edit,checkbox,edit,checkbox,edi"
"t,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,"
"edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||||||||||||||||||||||||||||||||||||||||||"
"||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "off,on,off,on,off,on,off,on,off,on,on,on,on,on,"
"on,on,on,off,on,on,on,off,on,on,on,on,on,off,on,off,on,off,off,off,off,off,of"
"f,off,off,off,off,off,off,off,off,off,off,off,off,off,off,off"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
",,,,"
MaskVariables "infoedit=&1;standard=@2;standard_sgadvanced=&3;"
"range_sel=@4;range_sel_sgadvanced=&5;in_bits=@6;in_bits_sgadvanced=&7;out_bit"
"s=@8;out_bits_sgadvanced=&9;coefA=@10;coefvoid=&11;coefB=@12;coefC=@13;coefD="
"@14;yoffset=@15;coffset=@16;has_clip=@17;has_clip_sgadvanced=&18;ymax=@19;cma"
"x=@20;has_clamp=@21;has_clamp_sgadvanced=&22;ymin=@23;cmin=@24;c_bits=@25;m_b"
"its=@26;fabric_adds=@27;fabric_adds_sgadvanced=&28;xl_use_area=@29;xl_use_are"
"a_sgadvanced=&30;xl_area=@31;prev_standard=&32;fabric_cache=&33;custom_coefa="
"&34;custom_coefb=&35;custom_coefc=&36;custom_coefd=&37;custom_ofs_y=&38;custo"
"m_ofs_c=&39;custom_has_max=&40;custom_has_min=&41;custom_max_y=&42;custom_max"
"_c=&43;custom_min_y=&44;custom_min_c=&45;block_version=&46;has_advanced_contr"
"ol=@47;sggui_pos=&48;block_type=&49;sg_icon_stat=&50;sg_mask_display=&51;sg_l"
"ist_contents=&52;"
MaskInitialization "xlMungeMaskParams;\nin_bits=12;\n% Set Block Lo"
"go\n[bg,fg] = xlcmap('XBlock',0);\niPos = get_param(gcb,'Position');\niWidth="
"iPos(3)-iPos(1); iHeight=iPos(4)-iPos(2);\niCx=iWidth/2;\niCy=iHeight/2;\n[lo"
"goX, logoY] = xlogo(iPos);\nblock_config = 'Sysgen:CSC_config';\nserialized_d"
"eclarations = '';\nfprintf('','COMMENT: end CSC init');\n"
MaskDisplay "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 165 165 0 ],[0 0 351 351 ],[0.77 0.82 0.91]);\npatch([38 11 50 11 38 "
"82 94 106 153 116 81 55 93 55 81 116 153 106 94 82 38 ],[111 138 177 216 243 "
"243 231 243 243 206 241 215 177 139 113 148 111 111 123 111 111 ],[0.98 0.96 "
"0.92]);\nplot([0 0 165 165 0 ],[0 351 351 0 0 ]);\nfprintf('','COMMENT: end i"
"con graphics');\npatch([0 iWidth iWidth 0],[0 0 iHeight iHeight] , bg);\npatc"
"h(logoX,logoY, fg);\nport_label('input',1,'R' );\nport_label('input',2,'G');"
"\nport_label('input',3,'B');\nport_label('input',4,'V_SYNC_in');\nport_label("
"'input',5,'H_SYNC_in');\nport_label('input',6,'PIX_EN_in');\nport_label('inpu"
"t',7,'en');\nport_label('input',8,'rst');\nport_label('output',1,'Y');\nport_"
"label('output',2,'Cr');\nport_label('output',3,'Cb');\nport_label('output',4,"
"'V_SYNC_out');\nport_label('output',5,'H_SYNC_out');\nport_label('output',6,'"
"PIX_EN_out');\n\nplot([0 0 iWidth iWidth 0], [0 iHeight iHeight 0 0]);\n"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "simplified 3x3 constant coefficient matrix mult"
"iplication, using only 4 multipliers exploiting parameter interdependance.|YC"
"rCb ITU 601 (SD)||16 - 240 : TV||10||10||0.299|0.587|0.114|0.564|0.713|64|512"
"|on||960|960|on||64|64|17|18|on||off||[97,141,0,122,0,4,0]|YCrCb ITU 601 (SD)"
"|on|0.299|0.114|0.564|0.713|64|512|on|on|960|960|64|64|VER_STRING_GOES_HERE|0"
"|19,93,360,467|counter|165,351,8,6,white,blue,0,07734|fprintf('','COMMENT: be"
"gin icon graphics ');\npatch([0 165 165 0 ],[0 0 351 351 ],[0.77 0.82 0.91]);"
"\npatch([38 11 50 11 38 82 94 106 153 116 81 55 93 55 81 116 153 106 94 82 38"
" ],[111 138 177 216 243 243 231 243 243 206 241 215 177 139 113 148 111 111 1"
"23 111 111 ],[0.98 0.96 0.92]);\nplot([0 0 165 165 0 ],[0 351 351 0 0 ]);\nfp"
"rintf('','COMMENT: end icon graphics');\npatch([0 iWidth iWidth 0],[0 0 iHeig"
"ht iHeight] , bg);\npatch(logoX,logoY, fg);\nport_label('input',1,'R' );\npor"
"t_label('input',2,'G');\nport_label('input',3,'B');\nport_label('input',4,'V_"
"SYNC_in');\nport_label('input',5,'H_SYNC_in');\nport_label('input',6,'PIX_EN_"
"in');\nport_label('input',7,'en');\nport_label('input',8,'rst');\nport_label("
"'output',1,'Y');\nport_label('output',2,'Cr');\nport_label('output',3,'Cb');"
"\nport_label('output',4,'V_SYNC_out');\nport_label('output',5,'H_SYNC_out');"
"\nport_label('output',6,'PIX_EN_out');\n\nplot([0 0 iWidth iWidth 0], [0 iHei"
"ght iHeight 0 0]);\n|"
MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
",,,,"
System {
Name "ColorSpace Conversion RGB to YCrCb"
Location [501, 501, 1098, 911]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "R"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "G"
Position [25, 63, 55, 77]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "B"
Position [25, 98, 55, 112]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "V_SYNC_in"
Position [25, 133, 55, 147]
Port "4"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Inport
Name "H_SYNC_in"
Position [25, 168, 55, 182]
Port "5"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Inport
Name "PIX_EN_in"
Position [25, 203, 55, 217]
Port "6"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Inport
Name "en"
Position [25, 238, 55, 252]
Port "7"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Inport
Name "rst"
Position [25, 273, 55, 287]
Port "8"
IconDisplay "Port number"
PortDimensions "1"
}
Block {
BlockType Reference
Name "ColorSpace"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -