]> git.sur5r.net Git - freertos/blob - Demo/PPC405_Xilinx_Virtex4_GCC/__xps/.dswkshop/MdtXdsSVG_BlkDDimensions.xsl
Add -fno-strict-aliasing
[freertos] / Demo / PPC405_Xilinx_Virtex4_GCC / __xps / .dswkshop / MdtXdsSVG_BlkDDimensions.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 <!-- 
13         ======================================================
14                         BUS INTERFACE DIMENSIONS
15         ======================================================
16 -->                             
17         
18 <xsl:param name="BIF_H"     select="16"/>                               
19 <xsl:param name="BIF_W"     select="32"/>                               
20         
21 <xsl:param name="BIFC_H"    select="24"/>                               
22 <xsl:param name="BIFC_W"    select="24"/>                               
23
24 <xsl:param name="BIFC_dx"   select="ceiling($BIFC_W div 5)"/>
25 <xsl:param name="BIFC_dy"   select="ceiling($BIFC_H div 5)"/>
26 <xsl:param name="BIFC_Hi"   select="($BIFC_H - ($BIFC_dy * 2))"/>       
27 <xsl:param name="BIFC_Wi"   select="($BIFC_W - ($BIFC_dx * 2))"/>
28
29 <xsl:param name="BIF_TYPE_ONEWAY"  select="'OneWay'"/>
30         
31 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
32         
33         
34 <!-- 
35         ======================================================
36                         BUS DIMENSIONS
37         ======================================================
38 -->                             
39         
40 <xsl:variable name="BUS_ARROW_W"        select="ceiling($BIFC_W div 3)"/>       
41 <xsl:variable name="BUS_ARROW_H"        select="ceiling($BIFC_H div 2)"/>
42 <xsl:variable name="BUS_ARROW_G"        select="ceiling($BIFC_W div 12)"/>
43         
44 <!--
45 <xsl:variable name="BUS_LANE_W"         select="(ceiling($BIF_W div 2) + $BUS_ARROW_W)"/>       
46 <xsl:variable name="BUS_LANE_W"         select="($BIFC_W + ceiling($BIFC_W div 2))"/>   
47 -->     
48 <xsl:variable name="BUS_LANE_W"         select="($BIF_W + ($MOD_BIF_GAP_H * 2))"/>
49 <xsl:variable name="SBS_LANE_H"         select="($periMOD_H + ($BIF_H * 2))"/>  
50         
51 <xsl:variable name="P2P_BUS_W"         select="($BUS_ARROW_H - ($BUS_ARROW_G * 2))"/>   
52         
53 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
54         
55 <!-- 
56         ======================================================
57                         IO PORT DIMENSIONS
58         ======================================================
59 -->                             
60         
61 <xsl:param name="IOP_H"   select="16"/>                         
62 <xsl:param name="IOP_W"   select="16"/>                         
63 <xsl:param name="IOP_SPC" select="12"/>                         
64
65 <xsl:param name="MOD_IO_GAP"   select="8"/>     
66 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
67         
68 <!-- 
69         ======================================================
70                         INTERRUPT NOTATION DIMENSIONS
71         ======================================================
72 -->                             
73         
74 <xsl:variable name="INTR_W"  select="18"/>
75 <xsl:variable name="INTR_H"  select="18"/>
76         
77 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
78         
79         
80 <!-- 
81         ======================================================
82                         MODULE DIMENSIONS
83         ======================================================
84 -->                             
85         
86 <xsl:variable name="MOD_LABEL_W"   select="(($BIF_W * 2) + $MOD_BIF_GAP_H)"/>
87 <xsl:variable name="MOD_LABEL_H"   select="(($BIF_H * 2) + ceiling($BIF_H div 3))"/>
88
89 <xsl:variable name="MOD_LANE_W"    select="ceiling($BIF_W div 3)"/>
90 <xsl:variable name="MOD_LANE_H"    select="ceiling($BIF_H div 4)"/>
91 <xsl:variable name="MOD_EDGE_W"    select="ceiling($MOD_LANE_W div 2)"/>
92 <xsl:variable name="MOD_SHAPES_G"  select="($BIF_W + $BIF_W)"/>
93 <xsl:variable name="MOD_BKTLANE_H" select="$BIF_H"/>
94 <xsl:variable name="MOD_BKTLANE_W" select="$BIF_H"/>
95 <xsl:variable name="MOD_BUCKET_G"  select="ceiling($BIF_W div 2)"/>
96         
97 <xsl:variable name="MOD_BIF_GAP_H" select="ceiling($BIF_H div 4)"/>                             
98 <xsl:variable name="MOD_BIF_GAP_V" select="ceiling($BIFC_H div 2)"/>                            
99 <!--    
100 <xsl:variable name="MOD_BIF_GAP_V" select="ceiling($BIF_H div 4)"/>                             
101 -->     
102
103 <xsl:variable name="periMOD_W"  select="(               ($BIF_W * 2) + ($MOD_BIF_GAP_H * 1) + ($MOD_LANE_W * 2))"/>
104 <xsl:variable name="periMOD_H"  select="($MOD_LABEL_H + ($BIF_H * 1) + ($MOD_BIF_GAP_V * 1) + ($MOD_LANE_H * 2))"/>
105         
106         
107 <!-- 
108         ======================================================
109                         GLOBAL DIAGRAM DIMENSIONS
110         ======================================================
111 -->                             
112 <xsl:variable name="BLKD_IORCHAN_H"     select="$BIF_H"/>
113 <xsl:variable name="BLKD_IORCHAN_W"     select="$BIF_H"/>
114 <xsl:variable name="BLKD_PRTCHAN_H"     select="($BIF_H * 2) + ceiling($BIF_H div 2)"/>
115 <xsl:variable name="BLKD_PRTCHAN_W"     select="($BIF_H * 2) + ceiling($BIF_H div 2) + 8"/>
116 <xsl:variable name="BLKD_DRAWAREA_MIN"  select="(($MOD_BKTLANE_W * 2) + (($periMOD_W * 3) + ($MOD_BUCKET_G * 2)))"/>
117
118 <xsl:variable name="BLKD_KEY_W"         select="($BLKD_DRAWAREA_MIN + ceiling($BLKD_DRAWAREA_MIN div 2.5))"/>
119 <xsl:variable name="BLKD_KEY_H"         select="250"/>
120
121 <xsl:variable name="BLKD_SPECS_W"       select="300"/>
122 <xsl:variable name="BLKD_SPECS_H"       select="100"/>
123         
124 <xsl:variable name="SBS2IP_GAP"         select="$periMOD_H"/>
125 <xsl:variable name="BKT_MODS_PER_ROW"   select="3"/>
126         
127 <xsl:variable name="IP2UNK_GAP"         select="$periMOD_H"/>
128 <xsl:variable name="PROC2SBS_GAP"       select="($BIF_H * 2)"/>
129 <xsl:variable name="IOR2PROC_GAP"       select="$BIF_W"/>
130 <xsl:variable name="SPECS2KEY_GAP"      select="$BIF_W"/>
131 <xsl:variable name="BLKD2KEY_GAP"       select="ceiling($BIF_W div 3)"/>
132 <xsl:variable name="BRIDGE_GAP"         select="($BUS_LANE_W * 4)"/>
133         
134 <xsl:variable name="BLKD_INNER_GAP"     select="ceiling($periMOD_W div 2)"/>
135 <xsl:variable name="BLKD_INNER_X"               select="($BLKD_PRTCHAN_W  + $BLKD_IORCHAN_W + $BLKD_INNER_GAP)"/>
136 <xsl:variable name="BLKD_INNER_Y"               select="($BLKD_PRTCHAN_H  + $BLKD_IORCHAN_H + $BLKD_INNER_GAP)"/>
137         
138 </xsl:stylesheet>