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">
12 <xsl:output method="xml"
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"/>
20 ======================================================
21 BUS INTERFACE DIMENSIONS
22 ======================================================
25 <xsl:variable name="BLKD_BIF_H" select="16"/>
26 <xsl:variable name="BLKD_BIF_W" select="32"/>
28 <xsl:variable name="BLKD_BIFC_H" select="24"/>
29 <xsl:variable name="BLKD_BIFC_W" select="24"/>
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))"/>
36 <xsl:variable name="BLKD_BIF_TYPE_ONEWAY" select="'OneWay'"/>
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 ======================================================
46 <xsl:variable name="BIF_H" select="$BLKD_BIF_H"/>
47 <xsl:variable name="BIF_W" select="$BLKD_BIF_W"/>
49 <xsl:variable name="BIFC_H" select="$BLKD_BIFC_H"/>
50 <xsl:variable name="BIFC_W" select="$BLKD_BIFC_W"/>
52 <xsl:variable name="BIFC_dx" select="$BLKD_BIFC_dx"/>
53 <xsl:variable name="BIFC_dy" select="$BLKD_BIFC_dy"/>
55 <xsl:variable name="BIFC_Hi" select="$BLKD_BIFC_Hi"/>
56 <xsl:variable name="BIFC_Wi" select="$BLKD_BIFC_Wi"/>
60 ======================================================
62 ======================================================
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)"/>
74 ======================================================
76 ======================================================
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"/>
85 ======================================================
86 INTERRUPT NOTATION DIMENSIONS
87 ======================================================
90 <xsl:variable name="BLKD_INTR_W" select="18"/>
91 <xsl:variable name="BLKD_INTR_H" select="18"/>
94 ======================================================
96 ======================================================
99 <xsl:variable name="BLKD_MOD_IO_GAP" select="8"/>
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))"/>
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)"/>
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))"/>
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)"/>
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)"/>
116 <xsl:variable name="BLKD_MOD_BKTLANE_H" select="$BLKD_BIF_H"/>
117 <xsl:variable name="BLKD_MOD_BKTLANE_W" select="$BLKD_BIF_H"/>
119 <xsl:variable name="BLKD_MOD_BUCKET_G" select="ceiling($BLKD_BIF_W div 2)"/>
121 <xsl:variable name="BLKD_MPMC_MOD_H" select="(($BLKD_BIF_H * 1) + ($BLKD_MOD_BIF_GAP_V * 2) + ($BLKD_MOD_LANE_H * 2))"/>
125 ======================================================
126 GLOBAL DIAGRAM DIMENSIONS
127 ======================================================
130 <xsl:variable name="BLKD_IORCHAN_H" select="$BLKD_BIF_H"/>
131 <xsl:variable name="BLKD_IORCHAN_W" select="$BLKD_BIF_H"/>
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"/>
136 <xsl:variable name="BLKD_DRAWAREA_MIN_W" select="(($BLKD_MOD_BKTLANE_W * 2) + (($BLKD_MOD_W * 3) + ($BLKD_MOD_BUCKET_G * 2)))"/>
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)"/>
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)"/>
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))"/>
155 <xsl:variable name="BLKD_SPECS_H" select="100"/>
156 <xsl:variable name="BLKD_SPECS_W" select="300"/>
160 <xsl:variable name="BLKD_BKT_MODS_PER_ROW" select="3"/>
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>
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>
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>
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>