]> git.sur5r.net Git - freertos/blob - Demo/MicroBlaze_Spartan-6_EthernetLite/PlatformStudioProject/__xps/.dswkshop/MdtSvgBLKD_Dimensions.xsl
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / MicroBlaze_Spartan-6_EthernetLite / PlatformStudioProject / __xps / .dswkshop / MdtSvgBLKD_Dimensions.xsl
1 <?xml version="1.0" standalone="no"?>
2 <xsl:stylesheet version="1.0"
3            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4        xmlns:exsl="http://exslt.org/common"
5        xmlns:dyn="http://exslt.org/dynamic"
6        xmlns:math="http://exslt.org/math"
7        xmlns:xlink="http://www.w3.org/1999/xlink"
8        extension-element-prefixes="math dyn exsl xlink">
9            
10            
11 <!-- 
12 <xsl:output method="xml" 
13                         version="1.0" 
14                         encoding="UTF-8" indent="yes"
15                 doctype-public="-//W3C//DTD SVG Tiny 1.1//EN"
16                 doctype-system="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"/>
17 -->     
18
19 <!-- 
20         ======================================================
21                         BUS INTERFACE DIMENSIONS
22         ======================================================
23 -->                             
24         
25 <xsl:variable name="BLKD_BIF_H"     select="16"/>                               
26 <xsl:variable name="BLKD_BIF_W"     select="32"/>                               
27         
28 <xsl:variable name="BLKD_BIFC_H"    select="24"/>                               
29 <xsl:variable name="BLKD_BIFC_W"    select="24"/>                               
30
31 <xsl:variable name="BLKD_BIFC_dx"   select="ceiling($BLKD_BIFC_W div 5)"/>
32 <xsl:variable name="BLKD_BIFC_dy"   select="ceiling($BLKD_BIFC_H div 5)"/>
33 <xsl:variable name="BLKD_BIFC_Hi"   select="($BLKD_BIFC_H - ($BLKD_BIFC_dy * 2))"/>     
34 <xsl:variable name="BLKD_BIFC_Wi"   select="($BLKD_BIFC_W - ($BLKD_BIFC_dx * 2))"/>
35
36 <xsl:variable name="BLKD_BIF_TYPE_ONEWAY"  select="'OneWay'"/>
37         
38 <!-- 
39         ======================================================
40                         GLOLBAL BUS INTERFACE DIMENSIONS
41                 (Define for global MdtSVG_BifShapes.xsl which is used across all
42              diagrams to define the shapes of bifs the same across all diagrams)
43         ======================================================
44 -->     
45         
46 <xsl:variable name="BIF_H"     select="$BLKD_BIF_H"/>                           
47 <xsl:variable name="BIF_W"     select="$BLKD_BIF_W"/>
48         
49 <xsl:variable name="BIFC_H"    select="$BLKD_BIFC_H"/>
50 <xsl:variable name="BIFC_W"    select="$BLKD_BIFC_W"/>
51         
52 <xsl:variable name="BIFC_dx"   select="$BLKD_BIFC_dx"/>
53 <xsl:variable name="BIFC_dy"   select="$BLKD_BIFC_dy"/>
54         
55 <xsl:variable name="BIFC_Hi"   select="$BLKD_BIFC_Hi"/> 
56 <xsl:variable name="BIFC_Wi"   select="$BLKD_BIFC_Wi"/>
57
58
59 <!-- 
60         ======================================================
61                         BUS DIMENSIONS
62         ======================================================
63 -->                             
64         
65 <xsl:variable name="BLKD_P2P_BUS_W"     select="($BLKD_BUS_ARROW_H - ($BLKD_BUS_ARROW_G * 2))"/>        
66 <xsl:variable name="BLKD_SBS_LANE_H"    select="($BLKD_MOD_H + ($BLKD_BIF_H * 2))"/>    
67 <xsl:variable name="BLKD_BUS_LANE_W"    select="($BLKD_BIF_W + ($BLKD_MOD_BIF_GAP_H * 2))"/>
68 <xsl:variable name="BLKD_BUS_ARROW_W"   select="ceiling($BLKD_BIFC_W div 3)"/>  
69 <xsl:variable name="BLKD_BUS_ARROW_H"   select="ceiling($BLKD_BIFC_H div 2)"/>
70 <xsl:variable name="BLKD_BUS_ARROW_G"   select="ceiling($BLKD_BIFC_W div 12)"/>
71         
72         
73 <!-- 
74         ======================================================
75                         IO PORT DIMENSIONS
76         ======================================================
77 -->                             
78         
79 <xsl:variable name="BLKD_IOP_H"   select="16"/>                         
80 <xsl:variable name="BLKD_IOP_W"   select="16"/>                         
81 <xsl:variable name="BLKD_IOP_SPC" select="12"/>                         
82
83         
84 <!-- 
85         ======================================================
86                         INTERRUPT NOTATION DIMENSIONS
87         ======================================================
88 -->                             
89         
90 <xsl:variable name="BLKD_INTR_W"  select="18"/>
91 <xsl:variable name="BLKD_INTR_H"  select="18"/>
92         
93 <!-- 
94         ======================================================
95                         MODULE DIMENSIONS
96         ======================================================
97 -->                             
98         
99 <xsl:variable name="BLKD_MOD_IO_GAP"   select="8"/>     
100         
101 <xsl:variable name="BLKD_MOD_W"  select="(                    ($BLKD_BIF_W * 2) + ($BLKD_MOD_BIF_GAP_H * 1) + ($BLKD_MOD_LANE_W * 2))"/>
102 <xsl:variable name="BLKD_MOD_H"  select="($BLKD_MOD_LABEL_H + ($BLKD_BIF_H * 1) + ($BLKD_MOD_BIF_GAP_V * 1) + ($BLKD_MOD_LANE_H * 2))"/>
103         
104 <xsl:variable name="BLKD_MOD_BIF_GAP_H" select="ceiling($BLKD_BIF_H div 4)"/>                           
105 <xsl:variable name="BLKD_MOD_BIF_GAP_V" select="ceiling($BLKD_BIFC_H div 2)"/>                          
106         
107 <xsl:variable name="BLKD_MOD_LABEL_W"   select="(($BLKD_BIF_W * 2) + $BLKD_MOD_BIF_GAP_H)"/>
108 <xsl:variable name="BLKD_MOD_LABEL_H"   select="(($BLKD_BIF_H * 2) + ceiling($BLKD_BIF_H div 3))"/>
109         
110 <xsl:variable name="BLKD_MOD_LANE_W"    select="ceiling($BLKD_BIF_W div 3)"/>
111 <xsl:variable name="BLKD_MOD_LANE_H"    select="ceiling($BLKD_BIF_H div 4)"/>
112         
113 <xsl:variable name="BLKD_MOD_EDGE_W"    select="ceiling($BLKD_MOD_LANE_W div 2)"/>
114 <xsl:variable name="BLKD_MOD_SHAPES_G"  select="($BLKD_BIF_W + $BLKD_BIF_W)"/>
115         
116 <xsl:variable name="BLKD_MOD_BKTLANE_H" select="$BLKD_BIF_H"/>
117 <xsl:variable name="BLKD_MOD_BKTLANE_W" select="$BLKD_BIF_H"/>
118         
119 <xsl:variable name="BLKD_MOD_BUCKET_G"  select="ceiling($BLKD_BIF_W div 2)"/>
120         
121 <xsl:variable name="BLKD_MPMC_MOD_H"    select="(($BLKD_BIF_H * 1) + ($BLKD_MOD_BIF_GAP_V * 2) + ($BLKD_MOD_LANE_H * 2))"/>
122         
123         
124 <!-- 
125         ======================================================
126                         GLOBAL DIAGRAM DIMENSIONS
127         ======================================================
128 -->                             
129         
130 <xsl:variable name="BLKD_IORCHAN_H"      select="$BLKD_BIF_H"/>
131 <xsl:variable name="BLKD_IORCHAN_W"      select="$BLKD_BIF_H"/>
132         
133 <xsl:variable name="BLKD_PRTCHAN_H"      select="($BLKD_BIF_H * 2) + ceiling($BLKD_BIF_H div 2)"/>
134 <xsl:variable name="BLKD_PRTCHAN_W"      select="($BLKD_BIF_H * 2) + ceiling($BLKD_BIF_H div 2) + 8"/>
135         
136 <xsl:variable name="BLKD_DRAWAREA_MIN_W" select="(($BLKD_MOD_BKTLANE_W * 2) + (($BLKD_MOD_W * 3) + ($BLKD_MOD_BUCKET_G * 2)))"/>
137         
138 <xsl:variable name="BLKD_INNER_X"                select="($BLKD_PRTCHAN_W  + $BLKD_IORCHAN_W + $BLKD_INNER_GAP)"/>
139 <xsl:variable name="BLKD_INNER_Y"                select="($BLKD_PRTCHAN_H  + $BLKD_IORCHAN_H + $BLKD_INNER_GAP)"/>
140 <xsl:variable name="BLKD_INNER_GAP"      select="ceiling($BLKD_MOD_W div 2)"/>
141         
142 <xsl:variable name="BLKD_SBS2IP_GAP"    select="$BLKD_MOD_H"/>
143 <xsl:variable name="BLKD_BRIDGE_GAP"    select="($BLKD_BUS_LANE_W * 4)"/>
144 <xsl:variable name="BLKD_IP2UNK_GAP"    select="$BLKD_MOD_H"/>
145 <xsl:variable name="BLKD_PROC2SBS_GAP"  select="($BLKD_BIF_H * 2)"/>
146 <xsl:variable name="BLKD_IOR2PROC_GAP"  select="$BLKD_BIF_W"/>
147 <xsl:variable name="BLKD_MPMC2PROC_GAP" select="($BLKD_BIF_H * 2)"/>
148 <xsl:variable name="BLKD_SPECS2KEY_GAP" select="$BLKD_BIF_W"/>
149 <xsl:variable name="BLKD_DRAWAREA2KEY_GAP"  select="ceiling($BLKD_BIF_W div 3)"/>
150         
151 <xsl:variable name="BLKD_KEY_H"         select="250"/>
152 <xsl:variable name="BLKD_KEY_W"         select="($BLKD_DRAWAREA_MIN_W + ceiling($BLKD_DRAWAREA_MIN_W div 2.5))"/>
153         
154         
155 <xsl:variable name="BLKD_SPECS_H"       select="100"/>
156 <xsl:variable name="BLKD_SPECS_W"       select="300"/>
157         
158         
159         
160 <xsl:variable name="BLKD_BKT_MODS_PER_ROW"   select="3"/>
161         
162 <!--            
163 <xsl:template name="Print_Dimensions">
164         <xsl:message>MOD_LABEL_W  : <xsl:value-of select="$MOD_LABEL_W"/></xsl:message>
165         <xsl:message>MOD_LABEL_H  : <xsl:value-of select="$MOD_LABEL_H"/></xsl:message>
166         
167         <xsl:message>MOD_LANE_W   : <xsl:value-of select="$MOD_LANE_W"/></xsl:message>
168         <xsl:message>MOD_LANE_H   : <xsl:value-of select="$MOD_LANE_H"/></xsl:message>
169         
170         <xsl:message>MOD_EDGE_W   : <xsl:value-of select="$MOD_EDGE_W"/></xsl:message>
171         <xsl:message>MOD_SHAPES_G : <xsl:value-of select="$MOD_SHAPES_G"/></xsl:message>
172         
173         <xsl:message>MOD_BKTLANE_W   : <xsl:value-of select="$MOD_BKTLANE_W"/></xsl:message>
174         <xsl:message>MOD_BKTLANE_H   : <xsl:value-of select="$MOD_BKTLANE_H"/></xsl:message>
175         <xsl:message>MOD_BUCKET_G    : <xsl:value-of select="$MOD_BUCKET_G"/></xsl:message>
176         
177 </xsl:template>         
178 -->     
179         
180 </xsl:stylesheet>