OpenCores
URL https://opencores.org/ocsvn/async_sdm_noc/async_sdm_noc/trunk

Subversion Repositories async_sdm_noc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /async_sdm_noc/branches
    from Rev 60 to Rev 61
    Reverse comparison

Rev 60 → Rev 61

/clos_opt/clos_opt/stg/ibctl.v
0,0 → 1,49
// Verilog model for ibctl
// Generated by petrify 4.2 (compiled 15-Oct-03 at 3:06 PM)
// CPU time for synthesis (host <unknown>): 0.07 seconds
// Estimated area = 8.00
 
// The circuit is self-resetting and does not need reset pin.
 
module ibctl_net (
dec,
do,
doa,
eof,
dia,
eofa,
deca
);
 
input dec;
input do;
input doa;
input eof;
 
output dia;
output eofa;
output deca;
 
 
// Functions not mapped into library gates:
// ----------------------------------------
 
// Equation: dia = eof + do
or _U0 (dia, do, eof);
 
// Equation: eofa = eof' eofa + doa'
not _U1 (_X0, doa);
not _U2 (_X1, eof);
and _U3 (_X2, _X1, eofa);
or _U4 (eofa, _X0, _X2);
 
// Equation: deca = eof' eofa + doa'
not _U5 (_X3, doa);
not _U6 (_X4, eof);
and _U7 (_X5, _X4, eofa);
or _U8 (deca, _X3, _X5);
 
 
// signal values at the initial state:
// !dec !do !doa !eof !dia eofa deca
endmodule
/clos_opt/clos_opt/stg/ibctl.g
0,0 → 1,56
# the STG for the controller of the last stage of input buffers
# eofa- is intentionally postponed after doa- for simplier circuit
# it is assumed dec+ happen before hdd(do+) already in realy circuits they can occure simultaneously
# However, this assumption simplify the STG and do not cause any malfunction in real circuit
# the control circuit generated by Petrify is ibctl.v
# using command: petrify ibctl.g -vl ibctl.v -rst0 -topt -icsc5 -fr10 -o ibctl.g.csc
#
# Wei Song, 16/06/2011 <wsong83@gmail.com>
 
 
.model ibctl
 
.inputs dec do doa eof
.outputs dia eofa deca
.dummy hdd data_data
 
.initial state eofa deca
 
.graph
 
Data do+/1
do+/1 dia+/1
do+/1 doa+/1
dia+/1 do-/1
doa+/1 do-/1
do-/1 dia-/1
do-/1 doa-/1
dia-/1 data_data
doa-/1 data_data
data_data Data
 
Data eof+
eof+ dia+/2
eof+ doa+/2
doa+/2 deca-
deca- dec-
dec- doa-/2
doa+/2 eofa-
eofa- eof-
dia+/2 eof-
eof- doa-/2
eof- dia-/2
doa-/2 deca+
doa-/2 eofa+
dia-/2 dec+
deca+ dec+
dec+ hdd
eofa+ hdd
 
 
hdd Data
 
.marking {<dia-/2,dec+> <eofa+,hdd> <deca+,dec+>}
 
 
.end
/clos_opt/clos_opt/stg/ibctl.g.ps
0,0 → 1,1158
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: Graphviz version 2.20.3 (Sun Jul 26 05:00:36 UTC 2009)
%%For: (songw) Wei Song,IT-302,0161-275-6292
%%Title: astg
%%Pages: (atend)
%%BoundingBox: (atend)
%%EndComments
save
%%BeginProlog
/DotDict 200 dict def
DotDict begin
 
/setupLatin1 {
mark
/EncodingVector 256 array def
EncodingVector 0
 
ISOLatin1Encoding 0 255 getinterval putinterval
EncodingVector 45 /hyphen put
 
% Set up ISO Latin 1 character encoding
/starnetISO {
dup dup findfont dup length dict begin
{ 1 index /FID ne { def }{ pop pop } ifelse
} forall
/Encoding EncodingVector def
currentdict end definefont
} def
/Times-Roman starnetISO def
/Times-Italic starnetISO def
/Times-Bold starnetISO def
/Times-BoldItalic starnetISO def
/Helvetica starnetISO def
/Helvetica-Oblique starnetISO def
/Helvetica-Bold starnetISO def
/Helvetica-BoldOblique starnetISO def
/Courier starnetISO def
/Courier-Oblique starnetISO def
/Courier-Bold starnetISO def
/Courier-BoldOblique starnetISO def
cleartomark
} bind def
 
%%BeginResource: procset graphviz 0 0
/coord-font-family /Times-Roman def
/default-font-family /Times-Roman def
/coordfont coord-font-family findfont 8 scalefont def
 
/InvScaleFactor 1.0 def
/set_scale {
dup 1 exch div /InvScaleFactor exch def
scale
} bind def
 
% styles
/solid { [] 0 setdash } bind def
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
/bold { 2 setlinewidth } bind def
/filled { } bind def
/unfilled { } bind def
/rounded { } bind def
/diagonals { } bind def
 
% hooks for setting color
/nodecolor { sethsbcolor } bind def
/edgecolor { sethsbcolor } bind def
/graphcolor { sethsbcolor } bind def
/nopcolor {pop pop pop} bind def
 
/beginpage { % i j npages
/npages exch def
/j exch def
/i exch def
/str 10 string def
npages 1 gt {
gsave
coordfont setfont
0 0 moveto
(\() show i str cvs show (,) show j str cvs show (\)) show
grestore
} if
} bind def
 
/set_font {
findfont exch
scalefont setfont
} def
 
% draw text fitted to its expected width
/alignedtext { % width text
/text exch def
/width exch def
gsave
width 0 gt {
[] 0 setdash
text stringwidth pop width exch sub text length div 0 text ashow
} if
grestore
} def
 
/boxprim { % xcorner ycorner xsize ysize
4 2 roll
moveto
2 copy
exch 0 rlineto
0 exch rlineto
pop neg 0 rlineto
closepath
} bind def
 
/ellipse_path {
/ry exch def
/rx exch def
/y exch def
/x exch def
matrix currentmatrix
newpath
x y translate
rx ry scale
0 0 1 0 360 arc
setmatrix
} bind def
 
/endpage { showpage } bind def
/showpage { } def
 
/layercolorseq
[ % layer color sequence - darkest to lightest
[0 0 0]
[.2 .8 .8]
[.4 .8 .8]
[.6 .8 .8]
[.8 .8 .8]
]
def
 
/layerlen layercolorseq length def
 
/setlayer {/maxlayer exch def /curlayer exch def
layercolorseq curlayer 1 sub layerlen mod get
aload pop sethsbcolor
/nodecolor {nopcolor} def
/edgecolor {nopcolor} def
/graphcolor {nopcolor} def
} bind def
 
/onlayer { curlayer ne {invis} if } def
 
/onlayers {
/myupper exch def
/mylower exch def
curlayer mylower lt
curlayer myupper gt
or
{invis} if
} def
 
/curlayer 0 def
 
%%EndResource
%%EndProlog
%%BeginSetup
14 default-font-family set_font
1 setmiterlimit
% /arrowlength 10 def
% /arrowwidth 5 def
 
% make sure pdfmark is harmless for PS-interpreters other than Distiller
/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
% make '<<' and '>>' safe on PS Level 1 devices
/languagelevel where {pop languagelevel}{1} ifelse
2 lt {
userdict (<<) cvn ([) cvn load put
userdict (>>) cvn ([) cvn load put
} if
 
%%EndSetup
setupLatin1
%%Page: 1 1
%%PageBoundingBox: 45 253 567 539
%%PageOrientation: Portrait
0 0 1 beginpage
gsave
45 253 522 286 boxprim clip newpath
0.828571 0.828571 set_scale 0 rotate 58.3103 309.931 translate
0.000 0.000 0.000 graphcolor
12 /Times-Roman set_font
236.5 35.2 moveto 149 (INPUTS: dec,do,doa,eof) alignedtext
0.000 0.000 0.000 graphcolor
12 /Times-Roman set_font
236.5 21.2 moveto 149 (OUTPUTS: dia,eofa,deca) alignedtext
0.000 0.000 0.000 graphcolor
12 /Times-Roman set_font
235.5 7.2 moveto 151 (DUMMY: hdd,data_data) alignedtext
% r0
gsave
grestore
% r1
gsave
grestore
% r0->r1
% r2
gsave
grestore
% r1->r2
% r3
gsave
grestore
% r2->r3
% r4
gsave
grestore
% r3->r4
% r5
gsave
grestore
% r4->r5
% p0
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
332 327 9 9 ellipse_path stroke
0.000 0.000 0.000 nodecolor
10 /Times-Roman set_font
319 324.5 moveto 26 (Data) alignedtext
grestore
% t0
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 166 295.5 moveto
106 295.5 lineto
106 270.5 lineto
166 270.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
114 278.9 moveto 44 (do+/1) alignedtext
grestore
% p0->t0
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 323 325 moveto
298 319 223 303 176 292 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 176.49 288.53 moveto
166 290 lineto
175.12 295.39 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 176.49 288.53 moveto
166 290 lineto
175.12 295.39 lineto
closepath stroke
grestore
% t7
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 400 295.5 moveto
350 295.5 lineto
350 270.5 lineto
400 270.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
357.5 278.9 moveto 35 (eof+) alignedtext
grestore
% p0->t7
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 338 321 moveto
342 316 349 309 355 303 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 357.4 305.55 moveto
362 296 lineto
352.45 300.6 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 357.4 305.55 moveto
362 296 lineto
352.45 300.6 lineto
closepath stroke
grestore
% t1
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 84 247.5 moveto
20 247.5 lineto
20 222.5 lineto
84 222.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
28 230.9 moveto 48 (dia+/1) alignedtext
grestore
% t0->t1
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 114 270 moveto
105 265 93 259 83 253 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 84.44 249.8 moveto
74 248 lineto
81.04 255.92 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 84.44 249.8 moveto
74 248 lineto
81.04 255.92 lineto
closepath stroke
grestore
% t2
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 170 247.5 moveto
102 247.5 lineto
102 222.5 lineto
170 222.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
110 230.9 moveto 52 (doa+/1) alignedtext
grestore
% t0->t2
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 136 270 moveto
136 266 136 262 136 258 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 139.5 258 moveto
136 248 lineto
132.5 258 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 139.5 258 moveto
136 248 lineto
132.5 258 lineto
closepath stroke
grestore
% t6
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 332 295.5 moveto
246 295.5 lineto
246 270.5 lineto
332 270.5 lineto
closepath stroke
0.000 0.000 0.000 nodecolor
14 /Times-Roman set_font
253.5 278.9 moveto 71 (data_data) alignedtext
grestore
% t6->p0
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 302 296 moveto
307 301 314 308 319 313 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 316.78 315.78 moveto
326 321 lineto
322.05 311.17 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 316.78 315.78 moveto
326 321 lineto
322.05 311.17 lineto
closepath stroke
grestore
% t8
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 486 247.5 moveto
424 247.5 lineto
424 222.5 lineto
486 222.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
431.5 230.9 moveto 47 (dia+/2) alignedtext
grestore
% t7->t8
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 396 270 moveto
405 265 416 259 425 253 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 426.96 255.92 moveto
434 248 lineto
423.56 249.8 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 426.96 255.92 moveto
434 248 lineto
423.56 249.8 lineto
closepath stroke
grestore
% t9
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 406 247.5 moveto
340 247.5 lineto
340 222.5 lineto
406 222.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
347.5 230.9 moveto 51 (doa+/2) alignedtext
grestore
% t7->t9
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 374 270 moveto
374 266 374 262 374 258 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 377.5 258 moveto
374 248 lineto
370.5 258 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 377.5 258 moveto
374 248 lineto
370.5 258 lineto
closepath stroke
grestore
% t19
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 534 295.5 moveto
492 295.5 lineto
492 270.5 lineto
534 270.5 lineto
closepath stroke
0.000 0.000 0.000 nodecolor
14 /Times-Roman set_font
499.5 278.9 moveto 27 (hdd) alignedtext
grestore
% t19->p0
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 492 288 moveto
456 297 385 314 351 322 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 349.57 318.77 moveto
341 325 lineto
351.58 325.48 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 349.57 318.77 moveto
341 325 lineto
351.58 325.48 lineto
closepath stroke
grestore
% p24
gsave
0.000 0.000 0.000 nodecolor
513 235 5.21 5.21 ellipse_path fill
1 setlinewidth
filled
0.000 0.000 0.000 nodecolor
513 235 5.21 5.21 ellipse_path stroke
1 setlinewidth
filled
0.000 0.000 0.000 nodecolor
513 235 9 9 ellipse_path stroke
grestore
% p24->t19
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 513 244 moveto
513 248 513 254 513 260 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 509.5 260 moveto
513 270 lineto
516.5 260 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 509.5 260 moveto
513 270 lineto
516.5 260 lineto
closepath stroke
grestore
% t3
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 202 199.5 moveto
150 199.5 lineto
150 174.5 lineto
202 174.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
157.5 182.9 moveto 37 (do-/1) alignedtext
grestore
% t1->t3
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 84 223 moveto
102 216 123 208 141 201 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 142.28 204.26 moveto
150 197 lineto
139.44 197.86 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 142.28 204.26 moveto
150 197 lineto
139.44 197.86 lineto
closepath stroke
grestore
% t2->t3
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 147 222 moveto
150 218 155 213 159 208 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 161.8 210.1 moveto
165 200 lineto
156.2 205.9 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 161.8 210.1 moveto
165 200 lineto
156.2 205.9 lineto
closepath stroke
grestore
% t4
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 244 247.5 moveto
188 247.5 lineto
188 222.5 lineto
244 222.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
195.5 230.9 moveto 41 (dia-/1) alignedtext
grestore
% t4->t6
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 235 248 moveto
243 253 253 259 261 265 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 259.56 268.2 moveto
270 270 lineto
262.96 262.08 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 259.56 268.2 moveto
270 270 lineto
262.96 262.08 lineto
closepath stroke
grestore
% t5
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 322 247.5 moveto
262 247.5 lineto
262 222.5 lineto
322 222.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
269.5 230.9 moveto 45 (doa-/1) alignedtext
grestore
% t5->t6
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 291 248 moveto
291 252 291 256 290 260 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 286.5 260 moveto
290 270 lineto
293.5 260 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 286.5 260 moveto
290 270 lineto
293.5 260 lineto
closepath stroke
grestore
% t14
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 471 151.5 moveto
429 151.5 lineto
429 126.5 lineto
471 126.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
436.5 134.9 moveto 27 (eof-) alignedtext
grestore
% t8->t14
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 454 222 moveto
453 207 452 181 451 162 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 454.5 162 moveto
451 152 lineto
447.5 162 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 454.5 162 moveto
451 152 lineto
447.5 162 lineto
closepath stroke
grestore
% t10
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 357 199.5 moveto
303 199.5 lineto
303 174.5 lineto
357 174.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
310.5 182.9 moveto 39 (deca-) alignedtext
grestore
% t9->t10
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 362 222 moveto
358 217 353 212 348 207 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 350.55 204.6 moveto
341 200 lineto
345.6 209.55 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 350.55 204.6 moveto
341 200 lineto
345.6 209.55 lineto
closepath stroke
grestore
% t13
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 427 199.5 moveto
375 199.5 lineto
375 174.5 lineto
427 174.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
383 182.9 moveto 36 (eofa-) alignedtext
grestore
% t9->t13
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 380 222 moveto
382 218 386 213 389 209 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 392.2 210.44 moveto
394 200 lineto
386.08 207.04 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 392.2 210.44 moveto
394 200 lineto
386.08 207.04 lineto
closepath stroke
grestore
% t18
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 595 247.5 moveto
541 247.5 lineto
541 222.5 lineto
595 222.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
549 230.9 moveto 38 (dec+) alignedtext
grestore
% t18->t19
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 553 248 moveto
548 253 541 258 535 263 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 532.22 260.78 moveto
527 270 lineto
536.83 266.05 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 532.22 260.78 moveto
527 270 lineto
536.83 266.05 lineto
closepath stroke
grestore
% p21
gsave
0.000 0.000 0.000 nodecolor
608 187 5.21 5.21 ellipse_path fill
1 setlinewidth
filled
0.000 0.000 0.000 nodecolor
608 187 5.21 5.21 ellipse_path stroke
1 setlinewidth
filled
0.000 0.000 0.000 nodecolor
608 187 9 9 ellipse_path stroke
grestore
% p21->t18
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 602 194 moveto
598 199 591 207 585 214 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 582.2 211.9 moveto
579 222 lineto
587.8 216.1 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 582.2 211.9 moveto
579 222 lineto
587.8 216.1 lineto
closepath stroke
grestore
% p22
gsave
0.000 0.000 0.000 nodecolor
568 187 5.21 5.21 ellipse_path fill
1 setlinewidth
filled
0.000 0.000 0.000 nodecolor
568 187 5.21 5.21 ellipse_path stroke
1 setlinewidth
filled
0.000 0.000 0.000 nodecolor
568 187 9 9 ellipse_path stroke
grestore
% p22->t18
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 568 196 moveto
568 200 568 206 568 212 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 564.5 212 moveto
568 222 lineto
571.5 212 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 564.5 212 moveto
568 222 lineto
571.5 212 lineto
closepath stroke
grestore
% t3->t4
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 187 200 moveto
190 204 195 209 199 214 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 196.2 216.1 moveto
205 222 lineto
201.8 211.9 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 196.2 216.1 moveto
205 222 lineto
201.8 211.9 lineto
closepath stroke
grestore
% t3->t5
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 202 198 moveto
217 204 236 212 252 219 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 251.42 222.54 moveto
262 223 lineto
254.02 216.04 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 251.42 222.54 moveto
262 223 lineto
254.02 216.04 lineto
closepath stroke
grestore
% t11
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 389 151.5 moveto
343 151.5 lineto
343 126.5 lineto
389 126.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
350.5 134.9 moveto 31 (dec-) alignedtext
grestore
% t10->t11
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 339 174 moveto
342 170 346 165 350 160 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 352.8 162.1 moveto
356 152 lineto
347.2 157.9 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 352.8 162.1 moveto
356 152 lineto
347.2 157.9 lineto
closepath stroke
grestore
% t13->t14
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 414 174 moveto
419 169 424 164 430 159 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 432.4 161.55 moveto
437 152 lineto
427.45 156.6 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 432.4 161.55 moveto
437 152 lineto
427.45 156.6 lineto
closepath stroke
grestore
% t17
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 541 199.5 moveto
483 199.5 lineto
483 174.5 lineto
541 174.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
490.5 182.9 moveto 43 (eofa+) alignedtext
grestore
% t17->p24
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 512 200 moveto
513 205 513 211 513 216 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 509.5 216 moveto
513 226 lineto
516.5 216 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 509.5 216 moveto
513 226 lineto
516.5 216 lineto
closepath stroke
grestore
% t12
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 503 103.5 moveto
443 103.5 lineto
443 78.5 lineto
503 78.5 lineto
closepath stroke
0.000 1.000 0.933 nodecolor
14 /Times-Roman set_font
451 86.9 moveto 44 (doa-/2) alignedtext
grestore
% t11->t12
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 389 129 moveto
402 122 420 114 435 108 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 437.02 110.96 moveto
445 104 lineto
434.42 104.46 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 437.02 110.96 moveto
445 104 lineto
434.42 104.46 lineto
closepath stroke
grestore
% t14->t12
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 456 126 moveto
458 122 460 118 462 113 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 465.2 114.44 moveto
467 104 lineto
459.08 111.04 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 465.2 114.44 moveto
467 104 lineto
459.08 111.04 lineto
closepath stroke
grestore
% t15
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 622 103.5 moveto
566 103.5 lineto
566 78.5 lineto
622 78.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
573.5 86.9 moveto 41 (dia-/2) alignedtext
grestore
% t14->t15
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 471 132 moveto
493 125 529 113 556 103 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 557.43 106.23 moveto
566 100 lineto
555.42 99.52 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 557.43 106.23 moveto
566 100 lineto
555.42 99.52 lineto
closepath stroke
grestore
% t16
gsave
1 setlinewidth
0.000 0.000 0.000 nodecolor
newpath 589 151.5 moveto
527 151.5 lineto
527 126.5 lineto
589 126.5 lineto
closepath stroke
0.667 1.000 1.000 nodecolor
14 /Times-Roman set_font
535 134.9 moveto 46 (deca+) alignedtext
grestore
% t16->p22
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 561 152 moveto
562 157 563 163 564 168 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 560.61 168.88 moveto
566 178 lineto
567.47 167.51 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 560.61 168.88 moveto
566 178 lineto
567.47 167.51 lineto
closepath stroke
grestore
% t12->t17
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 478 104 moveto
485 119 495 146 503 165 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 499.74 166.28 moveto
507 174 lineto
506.14 163.44 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 499.74 166.28 moveto
507 174 lineto
506.14 163.44 lineto
closepath stroke
grestore
% t12->t16
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 495 104 moveto
505 109 516 115 527 121 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 525.56 124.2 moveto
536 126 lineto
528.96 118.08 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 525.56 124.2 moveto
536 126 lineto
528.96 118.08 lineto
closepath stroke
grestore
% t15->p21
gsave
1 setlinewidth
0.000 0.000 0.000 edgecolor
newpath 596 104 moveto
599 120 602 149 605 168 curveto
stroke
0.000 0.000 0.000 edgecolor
newpath 601.61 168.88 moveto
607 178 lineto
608.47 167.51 lineto
closepath fill
1 setlinewidth
solid
0.000 0.000 0.000 edgecolor
newpath 601.61 168.88 moveto
607 178 lineto
608.47 167.51 lineto
closepath stroke
grestore
endpage
showpage
grestore
%%PageTrailer
%%EndPage: 1
%%Trailer
%%Pages: 1
%%BoundingBox: 45 253 567 539
end
restore
%%EOF
/clos_opt/common/src/addr_dec.v
0,0 → 1,43
/*
Asynchronous SDM NoC
(C)2011 Wei Song
Advanced Processor Technologies Group
Computer Science, the Univ. of Manchester, UK
Authors:
Wei Song wsong83@gmail.com
License: LGPL 3.0 or later
XY address decoder, 1-of-4 code
* Assuming the output will be capture for long time
* The withdrawal of inputs are not guarded
History:
14/07/2010 Initial version. <wsong83@gmail.com>
*/
 
module addr_dec(/*AUTOARG*/
// Outputs
dec,
// Inputs
locx, locy, tarx, tary
);
input [7:0] locx, locy; // the local addresses
input [7:0] tarx, tary; // the target addresses in the incoming frame
output [4:0] dec; // the decoded routing request
 
wire [3:0][2:0] cmp; // compare results
 
comp4 X0 (.a(tarx[3:0]), .b(locx[3:0]), .q(dec[0]));
comp4 X1 (.a(tarx[7:4]), .b(locx[7:4]), .q(dec[1]));
comp4 Y0 (.a(tary[3:0]), .b(locy[3:0]), .q(dec[2]));
comp4 Y1 (.a(tary[7:4]), .b(locy[7:4]), .q(dec[3]));
 
assign dec[0] = dec[1][1] | (dec[1][2]&dec[0][1]); // south, tarx < locx
assign dec[1] = dec[1][2]&dec[0][2]&(dec[3][0]|(dec[3][2]&dec[2][0])); // west, tary > locy
assign dec[2] = dec[1][0] | (dec[1][2]&dec[0][0]); // north, tarx < locx
assign dec[3] = dec[1][2]&dec[0][2]&(dec[3][1]|(dec[3][2]&dec[2][1])); // west, tary < locy
assign dec[4] = dec[3][2]&dec[2][2]&dec[1][2]&dec[0][2];
endmodule // addr_dec

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.