root/PlatformSupport/sysgen2opb/WARP Blockset/WARP_Blockset.mdl

Revision 858, 107.1 kB (checked in by murphpo, 6 months ago)

Added new register wrappers for Sysgen 10.1 memory mapped registers

Line 
1Library {
2  Name                    "WARP_Blockset"
3  Version                 6.6
4  MdlSubVersion           0
5  SavedCharacterEncoding  "windows-1252"
6  LibraryType             "BlockLibrary"
7  SaveDefaultBlockParams  on
8  SampleTimeColors        off
9  LibraryLinkDisplay      "none"
10  WideLines               off
11  ShowLineDimensions      off
12  ShowPortDataTypes       off
13  ShowLoopsOnError        on
14  IgnoreBidirectionalLines off
15  ShowStorageClass        off
16  ShowTestPointIcons      on
17  ShowViewerIcons         on
18  SortedOrder             off
19  ExecutionContextIcon    off
20  ShowLinearizationAnnotations on
21  ScopeRefreshTime        0.035000
22  OverrideScopeRefreshTime on
23  DisableAllScopes        off
24  BlockNameDataTip        off
25  BlockParametersDataTip  off
26  BlockDescriptionStringDataTip off
27  ToolBar                 on
28  StatusBar               on
29  BrowserShowLibraryLinks off
30  BrowserLookUnderMasks   off
31  Created                 "Wed Oct 18 14:10:55 2006"
32  Creator                 "murphpo"
33  UpdateHistory           "UpdateHistoryNever"
34  ModifiedByFormat        "%<Auto>"
35  LastModifiedBy          "murphpo"
36  ModifiedDateFormat      "%<Auto>"
37  LastModifiedDate        "Mon Apr 28 21:31:46 2008"
38  ModelVersionFormat      "1.%<AutoIncrement:29>"
39  ConfigurationManager    "None"
40  SimulationMode          "normal"
41  LinearizationMsg        "none"
42  Profile                 off
43  ParamWorkspaceSource    "MATLABWorkspace"
44  AccelVerboseBuild       off
45  CovSaveName             "covdata"
46  CovMetricSettings       "dw"
47  CovNameIncrementing     off
48  CovHtmlReporting        on
49  covSaveCumulativeToWorkspaceVar on
50  CovSaveSingleToWorkspaceVar on
51  CovCumulativeReport     off
52  CovReportOnPause        on
53  ExtModeBatchMode        off
54  ExtModeEnableFloating   on
55  ExtModeTrigType         "manual"
56  ExtModeTrigMode         "normal"
57  ExtModeTrigPort         "1"
58  ExtModeTrigElement      "any"
59  ExtModeTrigDuration     1000
60  ExtModeTrigDurationFloating "auto"
61  ExtModeTrigHoldOff      0
62  ExtModeTrigDelay        0
63  ExtModeTrigDirection    "rising"
64  ExtModeTrigLevel        0
65  ExtModeArchiveMode      "off"
66  ExtModeAutoIncOneShot   off
67  ExtModeIncDirWhenArm    off
68  ExtModeAddSuffixToVar   off
69  ExtModeWriteAllDataToWs off
70  ExtModeArmWhenConnect   on
71  ExtModeSkipDownloadWhenConnect off
72  ExtModeLogAll           on
73  ExtModeAutoUpdateStatusClock on
74  ProdHWDeviceType        "32-bit Generic"
75  ShowModelReferenceBlockVersion off
76  ShowModelReferenceBlockIO off
77  BlockDefaults {
78    Orientation             "right"
79    ForegroundColor         "black"
80    BackgroundColor         "white"
81    DropShadow              off
82    NamePlacement           "normal"
83    FontName                "Lucida Sans"
84    FontSize                10
85    FontWeight              "normal"
86    FontAngle               "normal"
87    ShowName                on
88  }
89  BlockParameterDefaults {
90    Block {
91      BlockType               Inport
92      Port                    "1"
93      UseBusObject            off
94      BusObject               "BusObject"
95      BusOutputAsStruct       off
96      PortDimensions          "-1"
97      SampleTime              "-1"
98      DataType                "auto"
99      OutDataType             "sfix(16)"
100      OutScaling              "2^0"
101      SignalType              "auto"
102      SamplingMode            "auto"
103      LatchByDelayingOutsideSignal off
104      LatchByCopyingInsideSignal off
105      Interpolate             on
106    }
107    Block {
108      BlockType               Outport
109      Port                    "1"
110      UseBusObject            off
111      BusObject               "BusObject"
112      BusOutputAsStruct       off
113      PortDimensions          "-1"
114      SampleTime              "-1"
115      DataType                "auto"
116      OutDataType             "sfix(16)"
117      OutScaling              "2^0"
118      SignalType              "auto"
119      SamplingMode            "auto"
120      OutputWhenDisabled      "held"
121      InitialOutput           "[]"
122    }
123    Block {
124      BlockType               Reference
125    }
126    Block {
127      BlockType               "S-Function"
128      FunctionName            "system"
129      SFunctionModules        "''"
130      PortCounts              "[]"
131    }
132    Block {
133      BlockType               SubSystem
134      ShowPortLabels          "FromPortIcon"
135      Permissions             "ReadWrite"
136      PermitHierarchicalResolution "All"
137      TreatAsAtomicUnit       off
138      SystemSampleTime        "-1"
139      RTWFcnNameOpts          "Auto"
140      RTWFileNameOpts         "Auto"
141      RTWMemSecFuncInitTerm   "Inherit from model"
142      RTWMemSecFuncExecute    "Inherit from model"
143      RTWMemSecDataConstants  "Inherit from model"
144      RTWMemSecDataInternal   "Inherit from model"
145      RTWMemSecDataParameters "Inherit from model"
146      SimViewingDevice        off
147      DataTypeOverride        "UseLocalSettings"
148      MinMaxOverflowLogging   "UseLocalSettings"
149    }
150    Block {
151      BlockType               Terminator
152    }
153  }
154  AnnotationDefaults {
155    HorizontalAlignment     "center"
156    VerticalAlignment       "middle"
157    ForegroundColor         "black"
158    BackgroundColor         "white"
159    DropShadow              off
160    FontName                "Arial"
161    FontSize                10
162    FontWeight              "normal"
163    FontAngle               "normal"
164    UseDisplayTextAsClickCallback off
165  }
166  LineDefaults {
167    FontName                "Arial"
168    FontSize                9
169    FontWeight              "normal"
170    FontAngle               "normal"
171  }
172  System {
173    Name                    "WARP_Blockset"
174    Location                [372, 403, 1554, 1073]
175    Open                    on
176    ModelBrowserVisibility  off
177    ModelBrowserWidth       200
178    ScreenColor             "white"
179    PaperOrientation        "landscape"
180    PaperPositionMode       "auto"
181    PaperType               "usletter"
182    PaperUnits              "inches"
183    TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
184    TiledPageScale          1
185    ShowPageBoundaries      off
186    ZoomFactor              "100"
187    ReportName              "simulink-default.rpt"
188    Block {
189      BlockType               SubSystem
190      Name                    "Register Wrappers\n(Sysgen 10.1+)"
191      Ports                   []
192      Position                [220, 350, 287, 392]
193      MinAlgLoopOccurrences   off
194      RTWSystemCode           "Auto"
195      FunctionWithSeparateData off
196      MaskHideContents        off
197      System {
198        Name                    "Register Wrappers\n(Sysgen 10.1+)"
199        Location                [372, 403, 841, 663]
200        Open                    on
201        ModelBrowserVisibility  off
202        ModelBrowserWidth       200
203        ScreenColor             "white"
204        PaperOrientation        "landscape"
205        PaperPositionMode       "auto"
206        PaperType               "usletter"
207        PaperUnits              "inches"
208        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
209        TiledPageScale          1
210        ShowPageBoundaries      off
211        ZoomFactor              "100"
212        Block {
213          BlockType               SubSystem
214          Name                    "Read Only Register"
215          Ports                   [2]
216          Position                [80, 186, 130, 219]
217          AttributesFormatString  "RO Reg: %<regName>"
218          MinAlgLoopOccurrences   off
219          RTWSystemCode           "Auto"
220          FunctionWithSeparateData off
221          MaskHideContents        off
222          MaskDescription         "This block is a wrapper for System Generato"
223"r's To Register shared memory block. This register is designed for use with W"
224"ARP's sysgen2opb tool.\n\nNote: The Regisger Name paramter below must be uniq"
225"ue for every instance of Read-Write and Read-Only registers in your system."
226          MaskPromptString        "Register Name"
227          MaskStyleString         "edit"
228          MaskTunableValueString  "off"
229          MaskEnableString        "on"
230          MaskVisibilityString    "on"
231          MaskToolTipString       "on"
232          MaskVariables           "regName=&1;"
233          MaskInitialization      "regBlock = find_system(gcb, 'LookUnderMasks"
234"', 'all', 'FollowLinks', 'on',   'block_type', 'toreg');\n\nif(length(regBloc"
235"k) > 0)\n\n    %Set the shared memory name\n    set_param(regBlock{1}, 'share"
236"d_memory_name', regName);\n\n  set_param(regBlock{1}, 'explicit_data_ty"
237"pe', 'on')\n    set_param(regBlock{1}, 'arith_type', 'unsigned');\n    se"
238"t_param(regBlock{1}, 'ownership', 'Locally owned and initialized')\n\n"
239"       set_param(regBlock{1}, 'n_bits', '32');\n       set_param(regBlock{1"
240"}, 'bin_pt', '0');\n   set_param(regBlock{1}, 'init', '0');\nend\n\n"
241          MaskSelfModifiable      on
242          MaskIconFrame           on
243          MaskIconOpaque          on
244          MaskIconRotate          "none"
245          MaskIconUnits           "autoscale"
246          MaskValueString         "'RO_Reg'"
247          System {
248            Name                    "Read Only Register"
249            Location                [567, 173, 1136, 671]
250            Open                    off
251            ModelBrowserVisibility  off
252            ModelBrowserWidth       200
253            ScreenColor             "white"
254            PaperOrientation        "landscape"
255            PaperPositionMode       "auto"
256            PaperType               "usletter"
257            PaperUnits              "inches"
258            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
259            TiledPageScale          1
260            ShowPageBoundaries      off
261            ZoomFactor              "100"
262            Block {
263              BlockType               Inport
264              Name                    "D"
265              Position                [15, 183, 45, 197]
266              IconDisplay             "Port number"
267            }
268            Block {
269              BlockType               Inport
270              Name                    "En"
271              Position                [15, 223, 45, 237]
272              Port                    "2"
273              IconDisplay             "Port number"
274            }
275            Block {
276              BlockType               Reference
277              Name                    "Convert"
278              Ports                   [1, 1]
279              Position                [180, 175, 225, 205]
280              SourceBlock             "xbsIndex_r4/Convert"
281              SourceType              "Xilinx Type Converter Block"
282              infoedit                "Hardware notes: rounding and saturating"
283" require hardware resources; truncating and wrapping do not."
284              arith_type              "Unsigned"
285              n_bits                  "32"
286              bin_pt                  "0"
287              quantization            "Truncate"
288              overflow                "Wrap"
289              latency                 "0"
290              dbl_ovrd                off
291              pipeline                off
292              xl_use_area             off
293              xl_area                 "[0,0,0,0,0,0,0]"
294              has_advanced_control    "0"
295              sggui_pos               "20,20,461,334"
296              block_type              "convert"
297              block_version           "10.1"
298              sg_icon_stat            "45,30,1,1,white,blue,0,74901e60,right"
299              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
300"s');\npatch([0 45 45 0 ],[0 0 30 30 ],[0.77 0.82 0.91]);\npatch([15 10 17 10 "
301"15 23 25 27 35 28 22 17 23 17 22 28 35 27 25 23 15 ],[3 8 15 22 27 27 25 27 2"
302"7 20 26 21 15 9 4 10 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 45 45 0 0 ],[0 0"
303" 30 30 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT:"
304" begin icon text');\ncolor('black');port_label('output',1,'cast');\nfprintf('"
305"','COMMENT: end icon text');\n"
306            }
307            Block {
308              BlockType               Reference
309              Name                    "Reinterpret"
310              Ports                   [1, 1]
311              Position                [90, 174, 140, 206]
312              SourceBlock             "xbsIndex_r4/Reinterpret"
313              SourceType              "Xilinx Type Reinterpreter Block"
314              infoedit                "Changes signal type without altering th"
315"e binary representation.   You can changed the signal between signed and unsi"
316"gned, and relocate the binary point.<P><P>Hardware notes: In hardware this bl"
317"ock costs nothing.<P><P>Example:  Suppose the input is 6 bits wide, signed, w"
318"ith 2 fractional bits, and the output is forced to unsigned with 0 fractional"
319" bits.  Then an input of -2.0 (1110.00 in binary 2's complement) becomes an o"
320"utput of 56 (111000 in binary)."
321              force_arith_type        on
322              arith_type              "Unsigned"
323              force_bin_pt            on
324              bin_pt                  "0"
325              has_advanced_control    "0"
326              sggui_pos               "20,20,336,312"
327              block_type              "reinterpret"
328              block_version           "10.1"
329              sg_icon_stat            "50,32,1,1,white,blue,0,8982c1db,right"
330              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
331"s');\npatch([0 50 50 0 ],[0 0 32 32 ],[0.77 0.82 0.91]);\npatch([16 11 18 11 "
332"16 24 26 28 37 30 23 18 25 18 23 30 37 28 26 24 16 ],[3 8 15 22 27 27 25 27 2"
333"7 20 27 22 15 8 3 10 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 50 50 0 0 ],[0 0"
334" 32 32 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT:"
335" begin icon text');\ncolor('black');disp('reinterpret');\nfprintf('','COMMENT"
336": end icon text');\n"
337            }
338            Block {
339              BlockType               Terminator
340              Name                    "Terminator"
341              Position                [410, 195, 430, 215]
342              ShowName                off
343            }
344            Block {
345              BlockType               Reference
346              Name                    "To Register"
347              Ports                   [2, 1]
348              Position                [310, 176, 365, 229]
349              ShowName                off
350              AttributesFormatString  "To Register\\n<< %<shared_memory_name> "
351">>"
352              SourceBlock             "xbsIndex_r4/To Register"
353              SourceType              "Xilinx Shared Memory Based To Register "
354"Block"
355              infoedit                "Register block that writes data to a sh"
356"ared memory register.  Delay of one sample period."
357              shared_memory_name      "'RO_Reg'"
358              init                    "0"
359              ownership               "Locally owned and initialized"
360              explicit_data_type      on
361              arith_type              "Unsigned"
362              n_bits                  "32"
363              bin_pt                  "0"
364              dbl_ovrd                off
365              xl_use_area             off
366              xl_area                 "[0,0,0,0,0,0,0]"
367              has_advanced_control    "0"
368              sggui_pos               "20,20,381,270"
369              block_type              "toreg"
370              block_version           "8.2.02"
371              sg_icon_stat            "55,53,1,1,white,blue,0,77cabcdf,right"
372              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
373"s');\npatch([0 60 60 0 ],[0 0 56 56 ],[0.77 0.82 0.91]);\npatch([15 6 19 6 15"
374" 30 34 38 54 41 29 20 32 20 29 41 54 38 34 30 15 ],[6 15 28 41 50 50 46 50 50"
375" 37 49 40 28 16 7 19 6 6 10 6 6 ],[0.98 0.96 0.92]);\nplot([0 60 60 0 0 ],[0 "
376"0 56 56 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT"
377": begin icon text');\ncolor('black');port_label('input',1,'din');\ncolor('bla"
378"ck');port_label('input',2,'en');\ncolor('black');port_label('output',1,'dout'"
379");\nfprintf('','COMMENT: end icon text');\n"
380            }
381            Line {
382              SrcBlock                "Convert"
383              SrcPort                 1
384              DstBlock                "To Register"
385              DstPort                 1
386            }
387            Line {
388              SrcBlock                "Reinterpret"
389              SrcPort                 1
390              DstBlock                "Convert"
391              DstPort                 1
392            }
393            Line {
394              SrcBlock                "D"
395              SrcPort                 1
396              DstBlock                "Reinterpret"
397              DstPort                 1
398            }
399            Line {
400              SrcBlock                "To Register"
401              SrcPort                 1
402              DstBlock                "Terminator"
403              DstPort                 1
404            }
405            Line {
406              SrcBlock                "En"
407              SrcPort                 1
408              Points                  [215, 0; 0, -15]
409              DstBlock                "To Register"
410              DstPort                 2
411            }
412          }
413        }
414        Block {
415          BlockType               SubSystem
416          Name                    "Read-Write Register"
417          Ports                   [0, 1]
418          Position                [75, 114, 130, 146]
419          AttributesFormatString  "RW Reg: %<regName>"
420          MinAlgLoopOccurrences   off
421          RTWSystemCode           "Auto"
422          FunctionWithSeparateData off
423          MaskHideContents        off
424          MaskDescription         "This block is a wrapper for two registers f"
425"rom the System Generator Shared Memory blockset:\na) A \"From Register\" bloc"
426"k, which provides a write-only register for the host processor\nb) A \"To Reg"
427"ister\" block, which provides a read-only register for the host processor\n\n"
428"Note: The Regisger Name paramter below must be unique for every instance of s"
429"hared-memory registers in your system. System Generator will throw an error i"
430"f duplicate names are found.\n"
431          MaskPromptString        "Register Name|Output Type|Output Num Bits|O"
432"utput Binary Point|Initial Value|Sample Period"
433          MaskStyleString         "edit,popup(Unsigned|Signed  (2's comp)),edi"
434"t,edit,edit,edit"
435          MaskTunableValueString  "off,off,off,off,off,off"
436          MaskCallbackString      "|||||"
437          MaskEnableString        "on,on,on,on,on,on"
438          MaskVisibilityString    "on,on,on,on,on,on"
439          MaskToolTipString       "on,on,on,on,on,on"
440          MaskVarAliasString      ",,,,,"
441          MaskVariables           "regName=&1;out_dataType=&2;out_numBits=@3;o"
442"ut_binaryPt=@4;initValue=@5;sampPeriod=@6;"
443          MaskInitialization      "wo_regBlock = find_system(gcb, 'LookUnderMa"
444"sks', 'all', 'FollowLinks', 'on', 'block_type', 'fromreg');\nro_regBlock = fi"
445"nd_system(gcb, 'LookUnderMasks', 'all', 'FollowLinks', 'on', 'block_type', 't"
446"oreg');\n\nif(length(wo_regBlock)>0)\n\n       %Set the shared memory name\n"
447"       set_param(wo_regBlock{1}, 'shared_memory_name', ['''' strcat(regName("
448"2:end-1), '_w') '''']);\n\n    set_param(wo_regBlock{1}, 'arith_type', sp"
449"rintf('%s', out_dataType));\n  set_param(wo_regBlock{1}, 'ownership', '"
450"Locally owned and initialized')\n\n    set_param(wo_regBlock{1}, 'n_bits'"
451", num2str(out_numBits));\n     set_param(wo_regBlock{1}, 'bin_pt', num2str"
452"(out_binaryPt));\n     set_param(wo_regBlock{1}, 'init', num2str(initValue"
453"));\nend\n\nif(length(ro_regBlock)>0)\n\n      %Set the shared memory name"
454"\n     set_param(ro_regBlock{1}, 'shared_memory_name', ['''' strcat(regNam"
455"e(2:end-1), '_r') '''']);\n\n  set_param(ro_regBlock{1}, 'explicit_data"
456"_type', 'on')\n    set_param(ro_regBlock{1}, 'arith_type', sprintf('%s', out_"
457"dataType));\n  set_param(ro_regBlock{1}, 'ownership', 'Locally owned an"
458"d initialized')\n\n    set_param(ro_regBlock{1}, 'n_bits', num2str(out_nu"
459"mBits));\n     set_param(ro_regBlock{1}, 'bin_pt', num2str(out_binaryPt));"
460"\n     set_param(ro_regBlock{1}, 'init', num2str(initValue));\nend\n"
461          MaskSelfModifiable      on
462          MaskIconFrame           on
463          MaskIconOpaque          on
464          MaskIconRotate          "none"
465          MaskIconUnits           "autoscale"
466          MaskValueString         "'RW_Reg'|Unsigned|32|0|0|1"
467          MaskTabNameString       ",,,,,"
468          System {
469            Name                    "Read-Write Register"
470            Location                [2, 74, 582, 375]
471            Open                    off
472            ModelBrowserVisibility  off
473            ModelBrowserWidth       200
474            ScreenColor             "white"
475            PaperOrientation        "landscape"
476            PaperPositionMode       "auto"
477            PaperType               "usletter"
478            PaperUnits              "inches"
479            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
480            TiledPageScale          1
481            ShowPageBoundaries      off
482            ZoomFactor              "100"
483            Block {
484              BlockType               Reference
485              Name                    "Constant"
486              Ports                   [0, 1]
487              Position                [175, 216, 200, 234]
488              ShowName                off
489              SourceBlock             "xbsIndex_r4/Constant"
490              SourceType              "Xilinx Constant Block Block"
491              arith_type              "Boolean"
492              const                   "1"
493              n_bits                  "16"
494              bin_pt                  "14"
495              explicit_period         on
496              period                  "sampPeriod"
497              dsp48_infoedit          "The use of this block for DSP48 instruc"
498"tions is deprecated.  Please use the Opmode block."
499              equ                     "P=C"
500              opselect                "C"
501              inp2                    "PCIN>>17"
502              opr                     "+"
503              inp1                    "P"
504              carry                   "CIN"
505              dbl_ovrd                off
506              has_advanced_control    "0"
507              sggui_pos               "20,20,400,346"
508              block_type              "constant"
509              block_version           "8.2.02"
510              sg_icon_stat            "25,18,1,1,white,blue,0,06094819,right"
511              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
512"s');\npatch([0 55 55 0 ],[0 0 26 26 ],[0.77 0.82 0.91]);\npatch([20 16 22 16 "
513"20 27 29 31 38 32 26 22 28 22 26 32 38 31 29 27 20 ],[3 7 13 19 23 23 21 23 2"
514"3 17 23 19 13 7 3 9 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 55 55 0 0 ],[0 0 "
515"26 26 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: "
516"begin icon text');\ncolor('black');port_label('output',1,'1');\nfprintf('','C"
517"OMMENT: end icon text');\n"
518            }
519            Block {
520              BlockType               Reference
521              Name                    "From Register"
522              Ports                   [0, 1]
523              Position                [150, 35, 195, 85]
524              ShowName                off
525              AttributesFormatString  "From Register\\n<< %<shared_memory_name"
526"> >>\\n%<n_bits>\\n%<period>\\n%<bin_pt>\\n%<arith_type>\\n%<ownership>\\n%<i"
527"nit>"
528              SourceBlock             "xbsIndex_r4/From Register"
529              SourceType              "Xilinx Shared Memory Based From Registe"
530"r Block"
531              infoedit                "Register block that reads data to a sha"
532"red memory register.  Delay of one sample period."
533              shared_memory_name      "'RW_Reg_w'"
534              init                    "0"
535              period                  "sampPeriod"
536              ownership               "Locally owned and initialized"
537              arith_type              "Unsigned"
538              n_bits                  "32"
539              bin_pt                  "0"
540              dbl_ovrd                off
541              xl_use_area             off
542              xl_area                 "[0,0,0,0,0,0,0]"
543              has_advanced_control    "0"
544              sggui_pos               "20,20,381,246"
545              block_type              "fromreg"
546              block_version           "8.2.02"
547              sg_icon_stat            "45,50,1,1,white,blue,0,4b212927,right"
548              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
549"s');\npatch([0 60 60 0 ],[0 0 56 56 ],[0.77 0.82 0.91]);\npatch([15 6 19 6 15"
550" 30 34 38 54 41 29 20 32 20 29 41 54 38 34 30 15 ],[6 15 28 41 50 50 46 50 50"
551" 37 49 40 28 16 7 19 6 6 10 6 6 ],[0.98 0.96 0.92]);\nplot([0 60 60 0 0 ],[0 "
552"0 56 56 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT"
553": begin icon text');\ncolor('black');port_label('output',1,'dout');\nfprintf("
554"'','COMMENT: end icon text');\n"
555            }
556            Block {
557              BlockType               Terminator
558              Name                    "Terminator"
559              Position                [370, 205, 390, 225]
560              ShowName                off
561            }
562            Block {
563              BlockType               Reference
564              Name                    "To Register"
565              Ports                   [2, 1]
566              Position                [270, 186, 325, 239]
567              ShowName                off
568              AttributesFormatString  "To Register\\n<< %<shared_memory_name> "
569">>"
570              SourceBlock             "xbsIndex_r4/To Register"
571              SourceType              "Xilinx Shared Memory Based To Register "
572"Block"
573              infoedit                "Register block that writes data to a sh"
574"ared memory register.  Delay of one sample period."
575              shared_memory_name      "'RW_Reg_r'"
576              init                    "0"
577              ownership               "Locally owned and initialized"
578              explicit_data_type      on
579              arith_type              "Unsigned"
580              n_bits                  "32"
581              bin_pt                  "0"
582              dbl_ovrd                off
583              xl_use_area             off
584              xl_area                 "[0,0,0,0,0,0,0]"
585              has_advanced_control    "0"
586              sggui_pos               "20,20,381,270"
587              block_type              "toreg"
588              block_version           "8.2.02"
589              sg_icon_stat            "55,53,1,1,white,blue,0,77cabcdf,right"
590              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
591"s');\npatch([0 60 60 0 ],[0 0 56 56 ],[0.77 0.82 0.91]);\npatch([15 6 19 6 15"
592" 30 34 38 54 41 29 20 32 20 29 41 54 38 34 30 15 ],[6 15 28 41 50 50 46 50 50"
593" 37 49 40 28 16 7 19 6 6 10 6 6 ],[0.98 0.96 0.92]);\nplot([0 60 60 0 0 ],[0 "
594"0 56 56 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT"
595": begin icon text');\ncolor('black');port_label('input',1,'din');\ncolor('bla"
596"ck');port_label('input',2,'en');\ncolor('black');port_label('output',1,'dout'"
597");\nfprintf('','COMMENT: end icon text');\n"
598            }
599            Block {
600              BlockType               Outport
601              Name                    "D"
602              Position                [285, 53, 315, 67]
603              IconDisplay             "Port number"
604              BusOutputAsStruct       off
605            }
606            Line {
607              SrcBlock                "From Register"
608              SrcPort                 1
609              Points                  [0, 0; 35, 0]
610              Branch {
611                DstBlock                "D"
612                DstPort                 1
613              }
614              Branch {
615                Points                  [0, 140]
616                DstBlock                "To Register"
617                DstPort                 1
618              }
619            }
620            Line {
621              SrcBlock                "Constant"
622              SrcPort                 1
623              DstBlock                "To Register"
624              DstPort                 2
625            }
626            Line {
627              SrcBlock                "To Register"
628              SrcPort                 1
629              DstBlock                "Terminator"
630              DstPort                 1
631            }
632          }
633        }
634        Block {
635          BlockType               SubSystem
636          Name                    "Write-Only Register"
637          Ports                   [0, 1]
638          Position                [70, 39, 125, 71]
639          AttributesFormatString  "RW Reg: %<regName>"
640          MinAlgLoopOccurrences   off
641          RTWSystemCode           "Auto"
642          FunctionWithSeparateData off
643          MaskHideContents        off
644          MaskDescription         "This block is a wrapper for System Generato"
645"r's \"From Register\" shared memory block.\n\nNote: The Regisger Name paramte"
646"r below must be unique for every instance of shared-memory registers in your "
647"system. System Generator will throw an error if duplicate names are found."
648          MaskPromptString        "Register Name|Output Type|Output Num Bits|O"
649"utput Binary Point|Initial Value|Sample Period"
650          MaskStyleString         "edit,popup(Unsigned|Signed  (2's comp)),edi"
651"t,edit,edit,edit"
652          MaskTunableValueString  "off,off,off,off,off,off"
653          MaskCallbackString      "|||||"
654          MaskEnableString        "on,on,on,on,on,on"
655          MaskVisibilityString    "on,on,on,on,on,on"
656          MaskToolTipString       "on,on,on,on,on,on"
657          MaskVarAliasString      ",,,,,"
658          MaskVariables           "regName=&1;out_dataType=&2;out_numBits=@3;o"
659"ut_binaryPt=@4;initValue=@5;sampPeriod=@6;"
660          MaskInitialization      "regBlock = find_system(gcb, 'LookUnderMasks"
661"', 'all', 'FollowLinks', 'on', 'block_type', 'fromreg');\n\nif(length(regBloc"
662"k)>0)\n\n      %Set the shared memory name\n\n    set_param(regBlock{1}, 's"
663"hared_memory_name', ['''' strcat(regName(2:end-1), '_w') '''']);\n\n   s"
664"et_param(regBlock{1}, 'arith_type', sprintf('%s', out_dataType));\n    se"
665"t_param(regBlock{1}, 'ownership', 'Locally owned and initialized')\n\n"
666"       set_param(regBlock{1}, 'n_bits', num2str(out_numBits));\n       set_"
667"param(regBlock{1}, 'bin_pt', num2str(out_binaryPt));\n set_param(regBl"
668"ock{1}, 'init', num2str(initValue));\nend\n"
669          MaskSelfModifiable      on
670          MaskIconFrame           on
671          MaskIconOpaque          on
672          MaskIconRotate          "none"
673          MaskIconUnits           "autoscale"
674          MaskValueString         "'WO_Reg'|Unsigned|32|0|0|1"
675          MaskTabNameString       ",,,,,"
676          System {
677            Name                    "Write-Only Register"
678            Location                [567, 173, 1136, 671]
679            Open                    off
680            ModelBrowserVisibility  off
681            ModelBrowserWidth       200
682            ScreenColor             "white"
683            PaperOrientation        "landscape"
684            PaperPositionMode       "auto"
685            PaperType               "usletter"
686            PaperUnits              "inches"
687            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
688            TiledPageScale          1
689            ShowPageBoundaries      off
690            ZoomFactor              "100"
691            Block {
692              BlockType               Reference
693              Name                    "From Register"
694              Ports                   [0, 1]
695              Position                [150, 35, 195, 85]
696              ShowName                off
697              AttributesFormatString  "From Register\\n<< %<shared_memory_name"
698"> >>\\n%<n_bits>\\n%<period>\\n%<bin_pt>\\n%<arith_type>\\n%<ownership>\\n%<i"
699"nit>"
700              SourceBlock             "xbsIndex_r4/From Register"
701              SourceType              "Xilinx Shared Memory Based From Registe"
702"r Block"
703              infoedit                "Register block that reads data to a sha"
704"red memory register.  Delay of one sample period."
705              shared_memory_name      "'WO_Reg_w'"
706              init                    "0"
707              period                  "sampPeriod"
708              ownership               "Locally owned and initialized"
709              arith_type              "Unsigned"
710              n_bits                  "32"
711              bin_pt                  "0"
712              dbl_ovrd                off
713              xl_use_area             off
714              xl_area                 "[0,0,0,0,0,0,0]"
715              has_advanced_control    "0"
716              sggui_pos               "20,20,381,246"
717              block_type              "fromreg"
718              block_version           "8.2.02"
719              sg_icon_stat            "45,50,1,1,white,blue,0,4b212927,right"
720              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
721"s');\npatch([0 60 60 0 ],[0 0 56 56 ],[0.77 0.82 0.91]);\npatch([15 6 19 6 15"
722" 30 34 38 54 41 29 20 32 20 29 41 54 38 34 30 15 ],[6 15 28 41 50 50 46 50 50"
723" 37 49 40 28 16 7 19 6 6 10 6 6 ],[0.98 0.96 0.92]);\nplot([0 60 60 0 0 ],[0 "
724"0 56 56 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT"
725": begin icon text');\ncolor('black');port_label('output',1,'dout');\nfprintf("
726"'','COMMENT: end icon text');\n"
727            }
728            Block {
729              BlockType               Outport
730              Name                    "D"
731              Position                [265, 53, 295, 67]
732              IconDisplay             "Port number"
733              BusOutputAsStruct       off
734            }
735            Line {
736              SrcBlock                "From Register"
737              SrcPort                 1
738              Points                  [0, 0]
739              DstBlock                "D"
740              DstPort                 1
741            }
742          }
743        }
744      }
745    }
746    Block {
747      BlockType               SubSystem
748      Name                    "WARP Radio ADC/DACs"
749      Ports                   []
750      Position                [220, 175, 284, 227]
751      MinAlgLoopOccurrences   off
752      RTWSystemCode           "Auto"
753      FunctionWithSeparateData off
754      MaskHideContents        off
755      System {
756        Name                    "WARP Radio ADC/DACs"
757        Location                [-23, 74, 800, 590]
758        Open                    off
759        ModelBrowserVisibility  off
760        ModelBrowserWidth       200
761        ScreenColor             "white"
762        PaperOrientation        "landscape"
763        PaperPositionMode       "auto"
764        PaperType               "usletter"
765        PaperUnits              "inches"
766        TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
767        TiledPageScale          1
768        ShowPageBoundaries      off
769        ZoomFactor              "100"
770        Block {
771          BlockType               SubSystem
772          Name                    "Radio 1 ADC I"
773          Ports                   [1, 1]
774          Position                [165, 242, 240, 278]
775          MinAlgLoopOccurrences   off
776          RTWSystemCode           "Auto"
777          FunctionWithSeparateData off
778          MaskHideContents        off
779          MaskPromptString        "Sample Period"
780          MaskStyleString         "edit"
781          MaskTunableValueString  "on"
782          MaskEnableString        "on"
783          MaskVisibilityString    "on"
784          MaskToolTipString       "on"
785          MaskVariables           "adc_sample_period=@1;"
786          MaskDisplay             "image(imread('WARP_Logo.jpg'))"
787          MaskIconFrame           on
788          MaskIconOpaque          on
789          MaskIconRotate          "none"
790          MaskIconUnits           "autoscale"
791          MaskValueString         "1"
792          System {
793            Name                    "Radio 1 ADC I"
794            Location                [-1278, 70, -2, 1004]
795            Open                    off
796            ModelBrowserVisibility  off
797            ModelBrowserWidth       200
798            ScreenColor             "white"
799            PaperOrientation        "landscape"
800            PaperPositionMode       "auto"
801            PaperType               "usletter"
802            PaperUnits              "inches"
803            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
804            TiledPageScale          1
805            ShowPageBoundaries      off
806            ZoomFactor              "100"
807            Block {
808              BlockType               Inport
809              Name                    "I"
810              Position                [200, 143, 230, 157]
811              IconDisplay             "Port number"
812            }
813            Block {
814              BlockType               Reference
815              Name                    "radio1_ADC_I"
816              Ports                   [1, 1]
817              Position                [265, 139, 320, 161]
818              ForegroundColor         "[0.250980, 0.000000, 0.000000]"
819              SourceBlock             "xbsIndex_r4/Gateway In"
820              SourceType              "Xilinx Gateway In Block"
821              infoedit                "Gateway in block.  Converts inputs of t"
822"ype Simulink integer, double and fixed point to  Xilinx fixed point type.<P><"
823"P>Hardware notes:  In hardware these blocks become top level input ports."
824              arith_type              "Signed  (2's comp)"
825              n_bits                  "14"
826              bin_pt                  "13"
827              quantization            "Round  (unbiased: +/- Inf)"
828              overflow                "Flag as error"
829              period                  "adc_sample_period"
830              dbl_ovrd                "off"
831              timing_constraint       "None"
832              locs_specified          "off"
833              LOCs                    "{}"
834              xl_use_area             "off"
835              xl_area                 "[0,0,0,0,0,0,0]"
836              block_version           "VER_STRING_GOES_HERE"
837              has_advanced_control    "0"
838              sggui_pos               "20,20,356,423"
839              block_type              "gatewayin"
840              sg_icon_stat            "55,22,1,1,white,yellow,0,4bb76ffd"
841              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
842"s ');\npatch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18"
843" 22 28 30 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 "
844"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 2"
845"2 22 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMEN"
846"T: begin icon text ');\ncolor('black');port_label('input',1,'\\fontsize{11pt}"
847"\\bf In ','texmode','on');\ncolor('black');port_label('output',1,' ');\nfprin"
848"tf('','COMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above "
849"this line -- machine generated code. ');\n"
850            }
851            Block {
852              BlockType               Outport
853              Name                    "I_out"
854              Position                [355, 143, 385, 157]
855              IconDisplay             "Port number"
856              BusOutputAsStruct       off
857            }
858            Line {
859              SrcBlock                "radio1_ADC_I"
860              SrcPort                 1
861              DstBlock                "I_out"
862              DstPort                 1
863            }
864            Line {
865              SrcBlock                "I"
866              SrcPort                 1
867              DstBlock                "radio1_ADC_I"
868              DstPort                 1
869            }
870          }
871        }
872        Block {
873          BlockType               SubSystem
874          Name                    "Radio 1 ADC Q"
875          Ports                   [1, 1]
876          Position                [165, 302, 240, 338]
877          MinAlgLoopOccurrences   off
878          RTWSystemCode           "Auto"
879          FunctionWithSeparateData off
880          MaskHideContents        off
881          MaskPromptString        "adc_sample_period"
882          MaskStyleString         "edit"
883          MaskTunableValueString  "on"
884          MaskEnableString        "on"
885          MaskVisibilityString    "on"
886          MaskToolTipString       "on"
887          MaskVariables           "adc_sample_period=@1;"
888          MaskDisplay             "image(imread('WARP_Logo.jpg'))"
889          MaskIconFrame           on
890          MaskIconOpaque          on
891          MaskIconRotate          "none"
892          MaskIconUnits           "autoscale"
893          MaskValueString         "1"
894          System {
895            Name                    "Radio 1 ADC Q"
896            Location                [-1278, 70, -2, 1004]
897            Open                    off
898            ModelBrowserVisibility  off
899            ModelBrowserWidth       200
900            ScreenColor             "white"
901            PaperOrientation        "landscape"
902            PaperPositionMode       "auto"
903            PaperType               "usletter"
904            PaperUnits              "inches"
905            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
906            TiledPageScale          1
907            ShowPageBoundaries      off
908            ZoomFactor              "100"
909            Block {
910              BlockType               Inport
911              Name                    "Q"
912              Position                [200, 143, 230, 157]
913              IconDisplay             "Port number"
914            }
915            Block {
916              BlockType               Reference
917              Name                    "radio1_ADC_Q"
918              Ports                   [1, 1]
919              Position                [265, 139, 320, 161]
920              ForegroundColor         "[0.250980, 0.000000, 0.000000]"
921              SourceBlock             "xbsIndex_r4/Gateway In"
922              SourceType              "Xilinx Gateway In Block"
923              infoedit                "Gateway in block.  Converts inputs of t"
924"ype Simulink integer, double and fixed point to  Xilinx fixed point type.<P><"
925"P>Hardware notes:  In hardware these blocks become top level input ports."
926              arith_type              "Signed  (2's comp)"
927              n_bits                  "14"
928              bin_pt                  "13"
929              quantization            "Round  (unbiased: +/- Inf)"
930              overflow                "Flag as error"
931              period                  "adc_sample_period"
932              dbl_ovrd                "off"
933              timing_constraint       "None"
934              locs_specified          "off"
935              LOCs                    "{}"
936              xl_use_area             "off"
937              xl_area                 "[0,0,0,0,0,0,0]"
938              block_version           "VER_STRING_GOES_HERE"
939              has_advanced_control    "0"
940              sggui_pos               "20,20,356,423"
941              block_type              "gatewayin"
942              sg_icon_stat            "55,22,1,1,white,yellow,0,4bb76ffd"
943              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
944"s ');\npatch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18"
945" 22 28 30 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 "
946"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 2"
947"2 22 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMEN"
948"T: begin icon text ');\ncolor('black');port_label('input',1,'\\fontsize{11pt}"
949"\\bf In ','texmode','on');\ncolor('black');port_label('output',1,' ');\nfprin"
950"tf('','COMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above "
951"this line -- machine generated code. ');\n"
952            }
953            Block {
954              BlockType               Outport
955              Name                    "Q_out"
956              Position                [355, 143, 385, 157]
957              IconDisplay             "Port number"
958              BusOutputAsStruct       off
959            }
960            Line {
961              SrcBlock                "Q"
962              SrcPort                 1
963              DstBlock                "radio1_ADC_Q"
964              DstPort                 1
965            }
966            Line {
967              SrcBlock                "radio1_ADC_Q"
968              SrcPort                 1
969              DstBlock                "Q_out"
970              DstPort                 1
971            }
972          }
973        }
974        Block {
975          BlockType               SubSystem
976          Name                    "Radio 1 DAC I"
977          Ports                   [1, 1]
978          Position                [165, 112, 240, 148]
979          MinAlgLoopOccurrences   off
980          RTWSystemCode           "Auto"
981          FunctionWithSeparateData off
982          MaskHideContents        off
983          MaskDescription         "WARP Radio Board #1 I-channel DAC"
984          MaskDisplay             "image(imread('WARP_Logo.jpg'))"
985          MaskIconFrame           on
986          MaskIconOpaque          on
987          MaskIconRotate          "none"
988          MaskIconUnits           "autoscale"
989          System {
990            Name                    "Radio 1 DAC I"
991            Location                [-848, 197, -543, 272]
992            Open                    off
993            ModelBrowserVisibility  off
994            ModelBrowserWidth       200
995            ScreenColor             "white"
996            PaperOrientation        "landscape"
997            PaperPositionMode       "auto"
998            PaperType               "usletter"
999            PaperUnits              "inches"
1000            TiledPaperMargins       [0.500000, 0.500000, 0.500000, 0.500000]
1001            TiledPageScale          1
1002            ShowPageBoundaries      off
1003            ZoomFactor              "100"
1004            Block {
1005              BlockType               Inport
1006              Name                    "I"
1007              Position                [200, 83, 230, 97]
1008              IconDisplay             "Port number"
1009            }
1010            Block {
1011              BlockType               Reference
1012              Name                    "Convert"
1013              Ports                   [1, 1]
1014              Position                [255, 80, 300, 100]
1015              SourceBlock             "xbsIndex_r4/Convert"
1016              SourceType              "Xilinx Type Converter Block"
1017              infoedit                "Hardware notes: rounding and saturating"
1018" require hardware resources; truncating and wrapping do not."
1019              arith_type              "Signed  (2's comp)"
1020              n_bits                  "16"
1021              bin_pt                  "15"
1022              quantization            "Truncate"
1023              overflow                "Flag as error"
1024              latency                 "0"
1025              dbl_ovrd                "off"
1026              pipeline                "off"
1027              xl_use_area             "off"
1028              xl_area                 "[0,0,0,0,0,0,0]"
1029              block_version           "VER_STRING_GOES_HERE"
1030              has_advanced_control    "0"
1031              sggui_pos               "20,20,374,366"
1032              block_type              "convert"
1033              sg_icon_stat            "45,20,1,1,white,blue,0,0eb6e735"
1034              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
1035"s ');\npatch([0 45 45 0 ],[0 0 20 20 ],[0.77 0.82 0.91]);\npatch([17 14 19 14"
1036" 17 22 23 24 30 26 22 19 24 19 22 26 30 24 23 22 17 ],[2 5 10 15 18 18 17 18 "
1037"18 14 18 15 10 5 2 6 2 2 3 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 45 45 0 ],[0 2"
1038"0 20 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMEN"
1039"T: begin icon text ');\ncolor('black');port_label('output',1,'cast');\nfprint"
1040"f('','COMMENT: end icon text');\n"
1041            }
1042            Block {
1043              BlockType               Reference
1044              Name                    "radio1_DAC_I"
1045              Ports                   [1, 1]
1046              Position                [345, 79, 400, 101]
1047              ForegroundColor         "[0.250980, 0.000000, 0.000000]"
1048              SourceBlock             "xbsIndex_r4/Gateway Out"
1049              SourceType              "Xilinx Gateway Out Block"
1050              infoedit                "Gateway out block.  Converts Xilinx fix"
1051"ed point inputs into ouputs of type Simulink integer, double, or fixed point."
1052"<P><P>Hardware notes:  In hardware these blocks become top level output ports"
1053" or are discarded, depending on how they are configured."
1054              hdl_port                "on"
1055              timing_constraint       "None"
1056              locs_specified          "off"
1057              LOCs                    "{}"
1058              xl_use_area             "off"
1059              xl_area                 "[0,0,0,0,0,0,0]"
1060              block_version           "VER_STRING_GOES_HERE"
1061              has_advanced_control    "0"
1062              sggui_pos               "-1,-1,-1,-1"
1063              block_type              "gatewayout"
1064              sg_icon_stat            "55,22,1,1,white,yellow,0,f0cec300"
1065              sg_mask_display         "fprintf('','COMMENT: begin icon graphic"
1066"s ');\npatch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18"
1067" 22 28 30 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 "
1068"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 2"
1069"2 22 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMEN"
1070"T: begin icon text ');\ncolor('black');port_label('input',1,' ');\ncolor('bla"
1071"ck');port_label('output',1,'\\fontsize{11pt}\\bf Out ','texmode','on');\nfpri"
1072"ntf('','COMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above"
1073" this line -- machine generated code. ');\n"
1074            }
1075            Block {
1076              BlockType               Outport