⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xil_ycrcb2rgb_tb.mdl

📁 VHDL代码
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Ports		      [1, 1]
      Position		      [140, 249, 195, 271]
      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]"
      block_version	      "VER_STRING_GOES_HERE"
      has_advanced_control    "0"
      sggui_pos		      "20,20,356,414"
      block_type	      "gatewayin"
      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		      SubSystem
      Name		      "ColorSpace Conversion YCrCb to RGB"
      Ports		      [8, 6]
      Position		      [225, 150, 385, 505]
      DeleteFcn		      "xlDestroyGui(gcbh);"
      LoadFcn		      "xlBlockLoadCallback(gcbh);"
      ModelCloseFcn	      "xlDestroyGui(gcbh);"
      PreSaveFcn	      "xlBlockPreSaveCallback(gcbh);"
      PostSaveFcn	      "xlBlockPostSaveCallback(gcbh);"
      DestroyFcn	      "xlDestroyGui(gcbh);"
      OpenFcn		      "xlOpenGui(gcbh,which('Xil_YCrCb2RGB_GUI.xml'), "
"@Xil_YCrCb2RGB_enablement,  @Xil_YCrCb2RGB_action)"
      CloseFcn		      "xlDestroyGui(gcbh);"
      MoveFcn		      "xlBlockMoveCallback(gcbh);"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Xilinx Color Space Converter - YCrCb to RGB 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||RGB Maximum "
"value|Outputs clamped||RGB Minimum value|Coefficient bits|Internal adder 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,checkbox,edit,edit,edit,edit,checkbox,edit,checkbox,edit,edit,edi"
"t,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"
      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"
      MaskVisibilityString    "off,on,off,on,off,on,off,on,off,on,on,on,on,on,"
"on,on,on,off,on,on,off,on,on,on,on,off,on,off,on,off,off,off,off,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"
      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;rgbmax=@19;h"
"as_clamp=@20;has_clamp_sgadvanced=&21;rgbmin=@22;c_bits=@23;m_bits=@24;fabric"
"_adds=@25;fabric_adds_sgadvanced=&26;xl_use_area=@27;xl_use_area_sgadvanced=&"
"28;xl_area=@29;prev_standard=&30;fabric_cache=&31;custom_coefa=&32;custom_coe"
"fb=&33;custom_coefc=&34;custom_coefd=&35;custom_ofs_y=&36;custom_ofs_c=&37;cu"
"stom_has_max=&38;custom_has_min=&39;custom_max_rgb=&40;custom_min_rgb=&41;blo"
"ck_version=&42;has_advanced_control=@43;sggui_pos=&44;block_type=&45;sg_icon_"
"stat=&46;sg_mask_display=&47;sg_list_contents=&48;"
      MaskInitialization      "xlMungeMaskParams;\n% Set Block Logo\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[logoX, logoY] ="
" xlogo(iPos);\nblock_config = 'Sysgen:Counter_config';\nserialized_declaratio"
"ns = '';\n"
      MaskDisplay	      "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 160 160 0 ],[0 0 355 355 ],[0.77 0.82 0.91]);\npatch([38 11 48 11 38 "
"80 91 102 147 111 77 52 89 52 77 111 147 102 91 80 38 ],[115 142 179 216 243 "
"243 232 243 243 207 241 216 179 142 117 151 115 115 126 115 115 ],[0.98 0.96 "
"0.92]);\nplot([0 0 160 160 0 ],[0 355 355 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,'Y');\nport_label('input',2,'Cr');"
"\nport_label('input',3,'Cb');\nport_label('input',4,'V_SYNC_in');\nport_label"
"('input',5,'H_SYNC_in');\nport_label('input',6,'PIX_EN_in');\nport_label('inp"
"ut',7,'en');\nport_label('input',8,'rst');\nport_label('output',1,'R');\nport"
"_label('output',2,'G');\nport_label('output',3,'B');\nport_label('output',4,'"
"V_SYNC_out');\nport_label('output',5,'H_SYNC_out');\nport_label('output',6,'P"
"IX_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|on||64|17|18|on||off||[120,170,0,122,0,4,0]|YCrCb ITU 601 (SD)|on|0."
"299|0.114|0.564|0.713|16|128|on|on|240|16|VER_STRING_GOES_HERE|0|20,20,360,42"
"1|counter|160,355,8,6,white,blue,0,07734||"
      MaskTabNameString	      ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
      System {
	Name			"ColorSpace Conversion YCrCb to RGB"
	Location		[462, 392, 940, 834]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Y"
	  Position		  [25, 38, 55, 52]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Cr"
	  Position		  [25, 78, 55, 92]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Cb"
	  Position		  [25, 118, 55, 132]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "V_SYNC_in"
	  Position		  [25, 158, 55, 172]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "H_SYNC_in"
	  Position		  [25, 198, 55, 212]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "PIX_EN_in"
	  Position		  [20, 238, 50, 252]
	  Port			  "6"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "en"
	  Position		  [20, 278, 50, 292]
	  Port			  "7"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "rst"
	  Position		  [20, 318, 50, 332]
	  Port			  "8"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "ColorSpace"
	  Ports			  [8, 6]
	  Position		  [80, 15, 225, 355]
	  SourceBlock		  "xbsIndex_r4/Black Box"
	  SourceType		  "Xilinx Black Box Block"
	  infoedit		  " Incorporates black box HDL and simulation "
"model into a System Generator design.<P><P>You must supply a Black Box with c"
"ertain information about the HDL component you would like to bring into Syste"
"m Generator. This information is provided through a Matlab function.<P><P>Whe"
"n \"Simulation mode\" is set to \"Inactive\", you will typically want to prov"
"ide a separate simulation model by using a Simulation Multiplexer.<P>When \"S"
"imulation mode\" is set to \"External co-simulator\", you must include a Mode"
"lSim block in the design."
	  init_code		  "Xil_YCrCb2RGB_config"
	  sim_method		  "External co-simulator"
	  engine_block		  "ModelSim"
	  xl_use_area		  off
	  xl_area		  "[0, 0, 0, 0, 0, 0, 0]"
	  block_version		  "VER_STRING_GOES_HERE"
	  has_advanced_control	  "0"
	  sggui_pos		  "-1,-1,-1,-1"
	  block_type		  "blackbox2"
	  sg_icon_stat		  "145,340,8,6,white,blue,0,cfe2ffe5"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics ')"
";\npatch([0 145 145 0 ],[0 0 340 340 ],[0.77 0.82 0.91]);\npatch([34 10 44 10"
" 34 72 82 92 133 101 70 47 81 47 70 101 133 92 82 72 34 ],[113 137 171 205 22"
"9 229 219 229 229 197 228 205 171 137 114 145 113 113 123 113 113 ],[0.98 0.9"
"6 0.92]);\nplot([0 0 145 145 0 ],[0 340 340 0 0 ]);\nfprintf('','COMMENT: end"
" icon graphics');\n\nfprintf('','COMMENT: begin icon text ');\ncolor('black')"
";port_label('input',1,'Y');\ncolor('black');port_label('input',2,'Cr');\ncolo"
"r('black');port_label('input',3,'Cb');\ncolor('black');port_label('input',4,'"
"V_SYNC_in');\ncolor('black');port_label('input',5,'H_SYNC_in');\ncolor('black"
"');port_label('input',6,'PIX_EN_in');\ncolor('black');port_label('input',7,'e"
"n');\ncolor('black');port_label('input',8,'rst');\ncolor('black');port_label("
"'output',1,'R');\ncolor('black');port_label('output',2,'G');\ncolor('black');"
"port_label('output',3,'B');\ncolor('black');port_label('output',4,'V_SYNC_out"
"');\ncolor('black');port_label('output',5,'H_SYNC_out');\ncolor('black');port"
"_label('output',6,'PIX_EN_out');\nfprintf('','COMMENT: end icon text');\nfpri"
"ntf('','COMMENT: Make no changes above this line -- machine generated code. '"
");\n\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "ModelSim"
	  Ports			  []
	  Position		  [317, 116, 382, 164]
	  FontName		  "Arial"
	  SourceBlock		  "xbsIndex_r4/ModelSim"
	  SourceType		  "ModelSim HDL Co-Simulation Interface Block"
	  infoedit		  "Allow other blocks to schedule HDL co-simul"
"ation tasks.<P><P>Note that selecting \"Skip compilation\" when inappropriate"
" can cause simulation errors and failures. Please refer to the block help for"
" details."
	  dir			  "./modelsim"
	  waveform		  on
	  leave_open		  on
	  skip_compile		  off
	  use_unisim		  off
	  custom_scripts	  on
	  post_vsim_script	  "wave_add_ycrcb_v4.do"
	  block_version		  "VER_STRING_GOES_HERE"
	  has_advanced_control	  "0"
	  sggui_pos		  "20,20,356,270"
	  block_type		  "hdlcosim"
	  sg_icon_stat		  "65,48,0,0,#c0c8e6,#ffffff,0,75ccfc7e"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics ')"
";\npatch([0 65 65 0 ],[0 0 48 48 ],[0.996094 0.996094 0.996094]);\npatch([20 "
"12 23 12 20 33 36 39 53 42 32 25 36 25 32 42 53 39 36 33 20 ],[5 13 24 35 43 "
"43 40 43 43 32 42 35 24 13 6 16 5 5 8 5 5 ],[0.75 0.78125 0.898438]);\nplot(["
"0 0 65 65 0 ],[0 48 48 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfp"
"rintf('','COMMENT: begin icon text ');\nfprintf('','COMMENT: end icon text');"
"\ntext(6,iHeight-11,'ModelSim');\n"
	  startup_timeout	  "120"
	}
	Block {
	  BlockType		  Outport
	  Name			  "R"
	  Position		  [260, 43, 290, 57]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "G"
	  Position		  [260, 98, 290, 112]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "B"
	  Position		  [260, 153, 290, 167]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "V_SYNC_out"
	  Position		  [260, 208, 290, 222]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "H_SYNC_out"
	  Position		  [260, 263, 290, 277]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "PIX_EN_out"
	  Position		  [260, 318, 290, 332]
	  Port			  "6"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Y"
	  SrcPort		  1
	  DstBlock		  "ColorSpace"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "ColorSpace"
	  SrcPort		  1
	  DstBlock		  "R"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Cr"
	  SrcPort		  1
	  DstBlock		  "ColorSpace"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Cb"
	  SrcPort		  1
	  DstBlock		  "ColorSpace"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -