]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/__xps/.dswkshop/MdtSVG_BifShapes.xsl
e3f4c3fbca9e8de3fe98b27b5d6ea224e45dda50
[freertos] / FreeRTOS / Demo / PPC405_FPU_Xilinx_Virtex4_GCC / __xps / .dswkshop / MdtSVG_BifShapes.xsl
1 <?xml version="1.0" standalone="no"?>
2 <xsl:stylesheet version="1.0"
3            xmlns:svg="http://www.w3.org/2000/svg"
4            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5            xmlns:exsl="http://exslt.org/common"
6            xmlns:xlink="http://www.w3.org/1999/xlink">
7                 
8 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
9                doctype-public="-//W3C//DTD SVG 1.0//EN"
10                    doctype-system="http://www.w3.org/TR/SVG/DTD/svg10.dtd"/>
11                         
12 <!-- ======================= DEF BLOCK =================================== -->
13         
14 <xsl:template name="Define_BifTypes">
15         
16         <xsl:for-each select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR">
17                 
18                 <xsl:call-template name="Define_BifType"> 
19                         <xsl:with-param name="iBusType"    select="@BUSSTD"/>
20                 </xsl:call-template>
21                 
22                 <xsl:call-template name="Define_BifBusConnectors"> 
23                         <xsl:with-param name="iBusType"    select="@BUSSTD"/>
24                 </xsl:call-template>
25                 
26         </xsl:for-each>
27         
28 <!--    
29         <xsl:message>The color of bus  <xsl:value-of select="@BUSSTD"/> is <xsl:value-of select="@RGB"/></xsl:message>
30         <xsl:message>The OPB Bus color is  <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[@BUSSTD = 'OPB']/@RGB"/> </xsl:message>
31 -->     
32 </xsl:template> 
33         
34
35 <xsl:template name="Define_BifType"> 
36         
37         <xsl:param name="iBusType"    select="'OPB'"/>
38         
39         <xsl:variable name="busColor_">
40                 <xsl:call-template name="BusType2Color">
41                         <xsl:with-param name="iBusType" select="$iBusType"/>
42                 </xsl:call-template>    
43         </xsl:variable>
44                         
45     <symbol id="{$iBusType}_Bif">
46                 <rect x="0"  
47                           y="0" 
48                           rx="3"
49                           ry="3"
50                           width= "{$BIF_W}" 
51                           height="{$BIF_H}" 
52                           style="fill:{$busColor_}; stroke:black; stroke-width:1"/> 
53         </symbol>
54         
55 </xsl:template>
56
57 <xsl:template name="Define_BifBusConnectors"> 
58         
59         <xsl:param name="iBusType"    select="'OPB'"/>
60         
61         <xsl:variable name="busColor_">
62                 <xsl:call-template name="BusType2Color">
63                         <xsl:with-param name="iBusType" select="$iBusType"/>
64                 </xsl:call-template>    
65         </xsl:variable>
66         
67         <xsl:variable name="busColor_lt_">
68                 <xsl:call-template name="BusType2LightColor">
69                         <xsl:with-param name="iBusType" select="$iBusType"/>
70                 </xsl:call-template>    
71         </xsl:variable>
72         
73         <xsl:variable name="bifc_wi_" select="ceiling($BIFC_W div 3)"/>
74         <xsl:variable name="bifc_hi_" select="ceiling($BIFC_H div 3)"/>
75         
76     <symbol id="{$iBusType}_busconn_MASTER">
77                 <rect x="0"  
78                           y="0" 
79                           width= "{$BIFC_W}" 
80                           height="{$BIFC_H}" 
81                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
82                           
83                 <rect x="{$BIFC_dx + 0.5}"  
84                           y="{$BIFC_dy}" 
85                           width= "{$BIFC_Wi}" 
86                           height="{$BIFC_Hi}" 
87                           style="fill:{$busColor_}; stroke:none;"/> 
88         </symbol>
89         
90     <symbol id="{$iBusType}_busconn_INITIATOR">
91                 <rect x="0"  
92                           y="0" 
93                           width= "{$BIFC_W}" 
94                           height="{$BIFC_H}" 
95                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
96                           
97                 <rect x="{$BIFC_dx + 0.5}"  
98                           y="{$BIFC_dy}" 
99                           width= "{$BIFC_Wi}" 
100                           height="{$BIFC_Hi}" 
101                           style="fill:{$busColor_}; stroke:none;"/> 
102         </symbol>
103         
104     <symbol id="{$iBusType}_busconn_SLAVE">
105                 <circle 
106                           cx="{ceiling($BIFC_W div 2)}"  
107                           cy="{ceiling($BIFC_H div 2)}" 
108                           r="{ceiling($BIFC_W  div 2)}" 
109                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
110                           
111                 <circle 
112                           cx="{ceiling($BIFC_W div 2) + 0.5}"  
113                           cy="{ceiling($BIFC_H div 2)}" 
114                           r="{ceiling($BIFC_Wi div 2)}" 
115                           style="fill:{$busColor_}; stroke:none;"/> 
116         </symbol>
117         
118     <symbol id="{$iBusType}_busconn_TARGET">
119                 <circle 
120                           cx="{ceiling($BIFC_W div 2)}"  
121                           cy="{ceiling($BIFC_H div 2)}" 
122                           r="{ceiling($BIFC_W  div 2)}" 
123                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
124                           
125                 <circle 
126                           cx="{ceiling($BIFC_W div 2) + 0.5}"  
127                           cy="{ceiling($BIFC_H div 2)}" 
128                           r="{ceiling($BIFC_Wi div 2)}" 
129                           style="fill:{$busColor_}; stroke:none;"/> 
130         </symbol>
131         
132         
133     <symbol id="{$iBusType}_busconn_MASTER_SLAVE">
134                 <circle 
135                           cx="{ceiling($BIFC_W div 2)}"  
136                           cy="{ceiling($BIFC_H div 2)}" 
137                           r="{ceiling($BIFC_W  div 2)}" 
138                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
139                           
140                 <circle 
141                           cx="{ceiling($BIFC_W div 2) + 0.5}"  
142                           cy="{ceiling($BIFC_H div 2)}" 
143                           r="{ceiling($BIFC_Wi div 2)}" 
144                           style="fill:{$busColor_}; stroke:none;"/> 
145                           
146                 <rect x="0"  
147                           y="{ceiling($BIFC_H div 2)}" 
148                           width= "{$BIFC_W}" 
149                           height="{ceiling($BIFC_H div 2)}" 
150                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
151                           
152                 <rect x="{$BIFC_dx + 0.5}"  
153                           y="{ceiling($BIFC_H div 2)}" 
154                           width= "{$BIFC_Wi}" 
155                           height="{ceiling($BIFC_Hi div 2)}" 
156                           style="fill:{$busColor_}; stroke:none;"/> 
157                           
158         </symbol>
159
160     <symbol id="{$iBusType}_busconn_MONITOR">
161                 
162                 <rect x="0"  
163                           y="0.5" 
164                           width= "{$BIFC_W}" 
165                           height="{ceiling($BIFC_Hi div 2)}" 
166                           style="fill:{$busColor_}; stroke:none;"/> 
167                           
168                 <rect x="0"  
169                           y="{ceiling($BIFC_H div 2) + 4}" 
170                           width= "{$BIFC_W}" 
171                           height="{ceiling($BIFC_Hi div 2)}" 
172                           style="fill:{$busColor_}; stroke:none;"/> 
173                           
174         </symbol>
175         
176     <symbol id="{$iBusType}_busconn_TRANSPARENT">
177     
178                 <circle 
179                           cx="{ceiling($BIFC_W div 2)}"  
180                           cy="{ceiling($BIFC_H div 2)}" 
181                           r="{ceiling($BIFC_W  div 2)}" 
182                           style="fill:{$busColor_lt_}; stroke:{$busColor_}; stroke-width:1"/> 
183                           
184                 <circle 
185                           cx="{ceiling($BIFC_W div 2) + 0.5}"  
186                           cy="{ceiling($BIFC_H div 2)}" 
187                           r="{ceiling($BIFC_Wi div 2)}" 
188                           style="fill:{$busColor_}; stroke:none;"/> 
189                 
190         </symbol>
191         
192     <symbol id="{$iBusType}_busconn_">
193     
194                 <circle 
195                           cx="{ceiling($BIFC_W div 2)}"  
196                           cy="{ceiling($BIFC_H div 2)}" 
197                           r="{ceiling($BIFC_W  div 2)}" 
198                           style="fill:{$COL_WHITE}; stroke:{$busColor_}; stroke-width:1"/> 
199                           
200                 <circle 
201                           cx="{ceiling($BIFC_W div 2) + 0.5}"  
202                           cy="{ceiling($BIFC_H div 2)}" 
203                           r="{ceiling($BIFC_Wi div 2)}" 
204                           style="fill:{$COL_WHITE}; stroke:none;"/> 
205                 
206         </symbol>
207         
208         
209 </xsl:template>
210
211 </xsl:stylesheet>