• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. ahb evc: Hw can I do a random back to back transfer with...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 67
  • Views 14081
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ahb evc: Hw can I do a random back to back transfer with random address

Anukrishnan
Anukrishnan over 14 years ago

Hi ,

I want to do a random back to back transfers, by constraining the ahb evc in specman.Basically I need the htrans as 2-0-2-2-2-2-0-2-0-2-2-2-2-  etc  with random address .So how can I constrain the ahb-evc  to get a sequence like this? Thanks in advance.

 

  • Cancel
Parents
  • Vlad Mocanu
    Vlad Mocanu over 14 years ago
    Hello,
    
    If I understand well, you are trying to send multiple SINGLE bursts with
    some IDLE states along the way (you have to use multiple bursts, if you
    want to have random addresses - due to the nature of the AHB bursts:
    INCR or WRAP). A direct approach, as I see it would be like this:
    
    extend vr_ahb_master_seq_kind : [ PATTERN_SEQ ];
    
    extend PATTERN_SEQ vr_ahb_master_seq {
    	!ahb_burst : SINGLE vr_ahb_master_driven_burst;
    
    	body()@driver.clock is {
    		//htrans will be 2
    		do ahb_burst;
    		
    		//htrans will be 0, then 2
    		do ahb_burst keeping {
    			it.transmit_delay == 1;
    		};
    
    		//the other remaining bursts with htrans 2
    		for i from 1 to 2 do {
    			do ahb_burst;
    		};
    	};
    };
    
    Of course, everything will go as smooth as I said if there is no
    arbitration in the environment (ex: using a single master environment
    with vr_ahb_lite_env). Also the whole sequence may stretch in time, due
    to hresp signal from the slave or other response then OKEY.
    
    After this in your MAIN vr_ahb_master_seq or in your virtual sequence
    you will repeatedly call the PATTERN_SEQ, defined above.
    
    Hope this will solve your problem. 
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Vlad Mocanu
    Vlad Mocanu over 14 years ago
    Hello,
    
    If I understand well, you are trying to send multiple SINGLE bursts with
    some IDLE states along the way (you have to use multiple bursts, if you
    want to have random addresses - due to the nature of the AHB bursts:
    INCR or WRAP). A direct approach, as I see it would be like this:
    
    extend vr_ahb_master_seq_kind : [ PATTERN_SEQ ];
    
    extend PATTERN_SEQ vr_ahb_master_seq {
    	!ahb_burst : SINGLE vr_ahb_master_driven_burst;
    
    	body()@driver.clock is {
    		//htrans will be 2
    		do ahb_burst;
    		
    		//htrans will be 0, then 2
    		do ahb_burst keeping {
    			it.transmit_delay == 1;
    		};
    
    		//the other remaining bursts with htrans 2
    		for i from 1 to 2 do {
    			do ahb_burst;
    		};
    	};
    };
    
    Of course, everything will go as smooth as I said if there is no
    arbitration in the environment (ex: using a single master environment
    with vr_ahb_lite_env). Also the whole sequence may stretch in time, due
    to hresp signal from the slave or other response then OKEY.
    
    After this in your MAIN vr_ahb_master_seq or in your virtual sequence
    you will repeatedly call the PATTERN_SEQ, defined above.
    
    Hope this will solve your problem. 
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information