AS 7.x Stimulus Files?

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Greetings -

 

I'd like to create a stimulus file for an AVR (M328P) CPP project that I am currently working on. I've been through the AS7 (Studio) Help and cannot find any mention of "stimulus file" or even just "stimulus" or "stimuli". Scant reference here, also, though one or two moderately recent posts suggest that people are using them.

 

Where would I go to find how to create and use stimulus files?

 

<edit> I did find something herre: http://www.atmel.com/webdoc/simu...  but it appears to be Studio6. Even following that, it is not obvious how to "attach" a stimulus file to a project. </edit>

 

<edit 2> I did notice Debug Menu entries "Execute Stimulifile" and "Set Stimulifile", but they are both greyed-out in a simulation session. Searching help for "Stimulifile" produces no results. </edit2>

 

Thanks

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

Last Edited: Mon. Nov 27, 2017 - 06:07 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ka7ehk wrote:
it is not obvious how to "attach" a stimulus file to a project.
What do you mean by "attach"? A stimuli file is something you load when you are using the simulator. It's not like it's an input to the building of the project or anything like that.

 

http://www.atmel.com/webdoc/simu...

Last Edited: Mon. Nov 27, 2017 - 10:10 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I mean: How do I execute the stimulus file when the simulation is running. All I see is grayed out menu items.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you load the stimuli file? http://www.atmel.com/webdoc/simu...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:
Did you load the stimuli file?

 

ka7ehk wrote:
I did notice Debug Menu entries "Execute Stimulifile" and "Set Stimulifile", but they are both greyed-out

[my emphasis]

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have to start the simulation in order to load a stimulus file?

 

<edit> Don't have access to AS right now. Just in case someone stumbles onto this thread, the AS6 documentation says that "Before starting debugging, the stimuli file is selected in the Tool tab in project properties page.". Missed that earlier. </edit>

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

Last Edited: Mon. Nov 27, 2017 - 05:16 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Changing the focus of the thread slightly...

 

I need to generate a 50us interrupt every 10ms with F_CPU = 8MHz. That requires a delay 80000 clocks (10ms) - 400 clocks (50us) = 76000. But, the maximum value of 32 bit variable is 65535. So, the question is: Are delay counts 32 bit or 64 bit? If 32 bit, then multiple delay statements will be needed.

 

Thanks

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ka7ehk wrote:
But, the maximum value of 32 bit variable is 65535.
Err no. A 32 bit variable can count from 0 to 4,294,967,295 (you are thinking of 16 bits)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Brain freeze. Sorry.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ka7ehk wrote:
Do you have to start the simulation in order to load a stimulus file?

http://www.atmel.com/webdoc/simu...

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think that I covered that in the <edit></edit> in that post.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:

Do you have to start the simulation in order to load a stimulus file?

 

http://www.atmel.com/webdoc/simu...

 

the somebody who interested this stimuli, not find any by this link. the best way just 2 find docs in net.

 

AVR-Simulator-UserGuide-DS50003042A.pdf

because as u know, atmel has included to the microchip and all the site was changed.

 

but really, i had checked that there are prompted, and it same not work for me. they said, that it can be created while de3bugging has launched to, and then u can edit it as u want. 

 

but after debugging launched, i has come to the debug tab and press 'set stimuli file'

and it doesn't set and don't existed in the folder.

 

may be somebody has the it's own old copy of stimuli file and can to upload it here?

Attachment(s): 

atmega328p

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

But you have not selected a file in that picture of the file selector? Is it really a surprise when it then says "no such file"? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I wrote a post about this some time ago. It may be helpful: https://www.avrfreaks.net/forum/stimulus-file-descriptiondefiniton

 

Also, here's an "out-of-context" answer that might be useful: https://www.avrfreaks.net/comment/2871031#comment-2871031