📄 xil_rgb2ycrcb_tb.mdl
字号:
Ports [8, 6]
Position [80, 12, 225, 303]
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_RGB2YCrCb_config"
sim_method "External co-simulator"
engine_block "ModelSim"
xl_use_area "off"
xl_area "[0, 0, 0, 0, 0, 0, 0]"
has_advanced_control "0"
sggui_pos "50,510,356,358"
block_type "blackbox2"
block_version "VER_STRING_GOES_HERE"
sg_icon_stat "145,291,8,6,white,blue,0,1dca97f4"
sg_mask_display "fprintf('','COMMENT: begin icon graphics ')"
";\npatch([0 145 145 0 ],[0 0 291 291 ],[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 ],[89 113 147 181 205"
" 205 195 205 205 173 204 181 147 113 90 121 89 89 99 89 89 ],[0.98 0.96 0.92]"
");\nplot([0 0 145 145 0 ],[0 291 291 0 0 ]);\nfprintf('','COMMENT: end icon g"
"raphics');\n\nfprintf('','COMMENT: begin icon text ');\ncolor('black');port_l"
"abel('input',1,'R');\ncolor('black');port_label('input',2,'G');\ncolor('black"
"');port_label('input',3,'B');\ncolor('black');port_label('input',4,'V_SYNC_in"
"');\ncolor('black');port_label('input',5,'H_SYNC_in');\ncolor('black');port_l"
"abel('input',6,'PIX_EN_in');\ncolor('black');port_label('input',7,'en');\ncol"
"or('black');port_label('input',8,'rst');\ncolor('black');port_label('output',"
"1,'Y');\ncolor('black');port_label('output',2,'Cr');\ncolor('black');port_lab"
"el('output',3,'Cb');\ncolor('black');port_label('output',4,'V_SYNC_out');\nco"
"lor('black');port_label('output',5,'H_SYNC_out');\ncolor('black');port_label("
"'output',6,'PIX_EN_out');\nfprintf('','COMMENT: end icon text');\nfprintf('',"
"'COMMENT: Make no changes above this line -- machine generated code. ');\n\n"
}
Block {
BlockType Reference
Name "ModelSim"
Ports []
Position [317, 146, 382, 194]
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_v4.do"
startup_timeout "120"
has_advanced_control "0"
sggui_pos "20,20,356,270"
block_type "hdlcosim"
block_version "VER_STRING_GOES_HERE"
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"
}
Block {
BlockType Outport
Name "Y"
Position [260, 28, 290, 42]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Cr"
Position [260, 78, 290, 92]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Cb"
Position [260, 128, 290, 142]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "V_SYNC_out"
Position [260, 178, 290, 192]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "H_SYNC_out"
Position [260, 228, 290, 242]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "PIX_EN_out"
Position [260, 278, 290, 292]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "R"
SrcPort 1
Points [0, 0]
DstBlock "ColorSpace"
DstPort 1
}
Line {
SrcBlock "ColorSpace"
SrcPort 1
DstBlock "Y"
DstPort 1
}
Line {
SrcBlock "G"
SrcPort 1
DstBlock "ColorSpace"
DstPort 2
}
Line {
SrcBlock "ColorSpace"
SrcPort 2
DstBlock "Cr"
DstPort 1
}
Line {
SrcBlock "B"
SrcPort 1
DstBlock "ColorSpace"
DstPort 3
}
Line {
SrcBlock "ColorSpace"
SrcPort 3
DstBlock "Cb"
DstPort 1
}
Line {
SrcBlock "V_SYNC_in"
SrcPort 1
DstBlock "ColorSpace"
DstPort 4
}
Line {
SrcBlock "H_SYNC_in"
SrcPort 1
DstBlock "ColorSpace"
DstPort 5
}
Line {
SrcBlock "ColorSpace"
SrcPort 4
DstBlock "V_SYNC_out"
DstPort 1
}
Line {
SrcBlock "ColorSpace"
SrcPort 5
DstBlock "H_SYNC_out"
DstPort 1
}
Line {
SrcBlock "PIX_EN_in"
SrcPort 1
DstBlock "ColorSpace"
DstPort 6
}
Line {
SrcBlock "en"
SrcPort 1
DstBlock "ColorSpace"
DstPort 7
}
Line {
SrcBlock "ColorSpace"
SrcPort 6
DstBlock "PIX_EN_out"
DstPort 1
}
Line {
SrcBlock "rst"
SrcPort 1
DstBlock "ColorSpace"
DstPort 8
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [90, 360, 120, 390]
ShowName off
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant1"
Position [90, 405, 120, 435]
ShowName off
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant2"
Position [90, 450, 120, 480]
ShowName off
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant3"
Position [90, 495, 120, 525]
ShowName off
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Reference
Name "Cr"
Ports [1, 1]
Position [425, 254, 480, 276]
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 Reference
Name "G"
Ports [1, 1]
Position [150, 229, 205, 251]
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 "HS_i"
Ports [1, 1]
Position [150, 364, 205, 386]
SourceBlock "xbsIndex_r4/Gateway In"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -