User Manual

Running the SnapShot Debugger Chapter 4. Tasks
32 wire arm ; / / / / / S i gn a l i n d i c a t e s SnapShot i s armed ( and has st a r t e d t e s t i n g p a t t e r n s )
33
34 //////// Now SnapShot macro blo c k i n s t a n t i a t i o n ///////
35 ACX SNAP SHOT # ( . MNTR WIDTH(MNTR WIDTH) ,
36 .DUTNAME(DUTNAME) ,
37 . OUTPUTPIPELINING( OUTPUTPIPELINING )
38 )
39 sna p s h o t in s t a n c e ( . t ck ( t ck ) ,
40 . tms ( tms ) ,
41 . t r s t n ( t r s t n ) ,
42 . t d i ( t d i ) ,
43 . tdo ( tdo ) ,
44 . u s r c l k ( u s r c l k ) ,
45 . Monitor ch ( monito r ch ) ,
46 . t r i g g e r c h ( moni tor c h [ 3 5 : 0 ] ) ,
47 . S t im u l i ( s t i m u l i ) ,
48 . Rs t n o ut ( r s t n o u t ) ,
49 .Arm( arm )
50 ) ;
51
52 u s e r s l o g i c
53 u s e r s l o g i c b l o c k i n s t a n c e ( . c l k ( u s r c l k ) ,
54 . r s t n ( u s r r s t n ) ,
55 . da t a o u t fr o m b l o c k ( moni tor c h ) ,
56 . o p t i o n a l t e s t r s t n i n ( r s t n o u t ) ,
57 . o p t i o n a l t e s t a r m i n ( arm ) ,
58 . o p t i o n a l t e s t s t i m u l i i n ( s t i m u l i )
59 ) ;
60 endmodule
61 / //// //// //// End of Sample E xample ////////////////////////
VHDL Instantiation:
1 VHDL e n t i t y f o r TopLeve l Design Example with SnapShot Macro
2 as well as Users Design blo c k . T his example w i l l guide the
3 user how t o implement SnapShot macro with Users Logic blo ck .
4 Library IEEE ;
5 Use IEEE . st d l o g i c 1 1 6 4 . a l l ;
6 Use IEEE . s t d l o g i c u n s i g n e d . a l l ;
7 Use IEEE . nu m e r ic b i t . a l l ;
8
9 e n t i t y u se r d e si g n w it h s n ap sh o t i s
10 ge n e r i c (
11 MNTR WIDTH : n a t u r a l : = 7 2
12 This above parameter should be varied ( 3 6 , 7 2 , 1 0 8 , 1 4 4 )
13 depending on the number of user s i g n a l s to be monitored
14 i n SnapShot
15 ) ;
16 port ( tck : in s t d l o g i c ;
17 t r s t n : in s t d l o g i c ;
18 tms : in s t d l o g i c ;
19 td i : in s t d l o g i c ;
20 tdo : out s t d l o g i c ;
21 us r c l k : i n s t d l o g i c ;
22 us r r s t n : in st d l o g i c
23 ) ;
24 end us e r d es i gn wi t h s na p s h ot ;
25
26 a r c h i t e c t u r e arch o f u s er de s ig n w i th sn a p s ho t i s
27 component ACX SNAP SHOT i s
28 ge n e r i c (
29 MNTR WIDTH : n a t u r a l ;
30 This above parameter should be varied ( 3 6 , 7 2 , 1 0 8 , 1 4 4 )
31 depending on the number of user s i g n a l s to be monitored
32
33 OUTPUTPIPELINING : n a t u r a l ;
34 I f we a r e using t h e SnapShot outputs Stimuli , Arm, and
35 R s t n o ut in u s e r s l o g i c to dr i v e behavior , we should s e t
36 t h i s to a value gr e a t e r than the d e f a u l t of 0 .
37 Se v e r a l valu e s may need t o be t r i e d b e f ore di s c ove r i ng
38 t he optimal ba l ance of t imi ng c r i t i c a l i t y and SnapShot are a .
39
40 DUTNAME: s t r i n g
41 This parameter value should match the user s module name .
42 ) ;
43 p o r t ( t c k : in s t d l o g i c ;
44 t r s t n : i n s t d l o g i c ;
45 tms : in s t d l o g i c ;
46 t d i : in s t d l o g i c ;
47 tdo : out s t d l o g i c ;
48 u s r c l k : in s t d l o g i c ;
49 Monitor ch : i n s t d l o g i c v e c t o r (MNTR WIDTH1 downto 0 ) ;
50 t r i g g e r c h : in s t d l o g i c v e c t o r ( 3 5 downto 0 ) ;
UG001 Rev. 5.0 - 5th December 2012 http://www.achronix.com 288