Currently I run Mentorgraphics Modelsim in batch mode for a few nightly simulations.
My simulations run fantastic and in my transcript files I can see all errors/warnings/etc. but it would be nice to see the waveform for every simulation in a image, too, without simulating the projects again (it takes a long time...).
Modelsim/Questasim is able to export this bitmap in GUI mode (Select wave window and go to menu bar: "File -> Export -> Image").
Is there any opportunity to save the waveform as image in batch mode OR GUI mode with Tcl/Modelsim commands?
I read the commands about Modelsim (Modelsim SE User Manual) but I didn't find anything.
I am using Modelsim PE 10.4c # Win7 64bit.
I am very thankful for any help/tips! :)
Michael
Unless your simulation is short enough, saving a bitmap of the full zoom won't help much.
What I suggest you to do is save the waveform by using vsim -wlf waveform.wlf .... Later you can view the by doing vsim -view waveform.wlf.
If you used a wave.do file to add signals when running the simulation, you must call it when viewing also, i.e.:
vsim -wlf waveform.wlf -do wave.do
And then
vsim -view waveform.wlf -do wave.do
Related
I am working on IAR Workbench platform V7.70.1 and I am triying to download a simple code (a simple main with a while(1) only into it), but I'm not succeding to download the code on the processor. I am using the board NUCLEO-F401RE of STM company, based on the processor STM32F401RE. I'm am getting the following message:
Failed to load flash loader: C:\Program Files\IAR Systems\Embedded Workbench 7.5\arm\config\flashloader\ST\FlashSTM32F401xE.flash
If someone is familiar with the issue, some help would save me. I read something about this issue on this link but I did not understand what I'm supposed to do:
Thank you in advance
the solution is very simple -
go to Project->Option->Debugger->Download - uncheck the checkbox "Override default.board file".
have a good day
Itshak
Look at the ST-Link reset type. Often the ST debug interface can not connect due to the processor state.
Form the menu bar select Project->Options then ST-Link from the list on the left. The Reset box is normally set to Normal but can be changed to Connect during reset which will hold the processor in reset while connecting the debugger before any code can execute.
For me this worked:
I erase my Port with "CrossCore Serial Flash Programmer"
Then under Project->Options->Debugger->CMSIS DAP->Setup I choose "Software".
Then I debug once.
Then I choose "Hardware" in the same setting window.
Debug again.
Then it worked. Some other software might mess up the correct serial settings, thats why you have to erase and reset them.
I would like to enhance the OS X Standard Save dialog with some features (add some controls).
DefaultFolderX actually achieved this
http://www.stclairsoft.com/DefaultFolderX/faq.html
.
They note:
"This means that Default Folder X loads a small piece of program code into each application's memory space (in RAM) so that it can communicate with Navigation Services, the OS X service that provides the Open and Save dialogs."
The question is, is this the easiest way to do this?
If yes, how would someone start on this endeavor (e.g. what kind of Project in Xcode, how to handle the "hook" mechanism if at all necessary, what documentation to read)?
If you want controls at the bottom of the open/save dialog in your app, the NSSavePanel and NSOpenPanel have a function where you can set your own custom view that will sit on the bottom of the dialog. If you want to modify the NSOpenPanels and NSSavePanels differently, or across the whole system, that will take a lot of work that might just break every time Apple updates their OS.
I've been trying to write a simple app that resets display resolution for an iMac and a connected projector to 1024x768, 85 Hz and 32bit color.
When the projector is directly connected to the mac with VGA or HDMI, the CGDisplayCopyAllDisplayModes() function gives a list of modes which includes the settings I want to apply. But my college uses Extron VGA wall box thing to connect VGA wires to projectors, which leads to CGDisplayCopyAllDisplayModes() giving a much smaller (only 800x600 and 640X480) list of modes. Also, the name of the display when using the wall box is just VGA Display as opposed to Np-511 or whatever the name of the projector is. The weird thing is that System Preferences->Display shows a 1024x768 setting even then and lets me apply it too.
Is there any way to either get a larger list of modes for the projector, create a 1024x768 mode from scratch and apply it (I've already confirmed that the projector supports it) or simply make System preferences choose that mode for me? I've already written an applescript to do the latter but the disply preferences changes according to the projector connected so I need a more general solution.
Looking forward to your help! I've added some code I used and can include more of it if it'd help.
CGGetOnlineDisplayList (MAX_DISPLAYS, displays, &numDisplays); // to get list of display ids
// ... now iterating over list of displays
CFArrayRef modeList = CGDisplayCopyAllDisplayModes (displays[i], NULL);
I have a Windows program that has a GUI which also uses a command line interface (a cmd Window) as a debugging console. Basically, when it is double clicked, it launches a command line window and then the program creates all the GUI windows. Then you'd have two Windows: the main GUI and a debugging console.
I'm trying to port this pogram to OS X. Because OS X (and all Unix OSs for that matter) doesn't automatically launch a command line window when you run a command line application. So, I obviously need another way to port this application.
My initial thought was simply to import the source code into a XCode project, redirect standard input and output and then port the GUI. The GUI and console would run side by side just like in Windows. I don't think this is the most optimal solution since that would mean I'd essentially have to write a terminal emulator.
My other thought would be to port the application as a command line application which creates its GUI just like in Windows. The application would then have to be run from Terminal.app which could handle all the I/O. Unfortunately, I don't think you can use the Cocoa framework without using a NSApplication loop.
Any ideas how I could approach this?
You can of course create a run loop from a terminal-launched app. But that generally isn't what you want to do.
It sounds like on Windows, the CLI is just being used as a shortcut to creating a real debugging console window. So the simplest answer is to create a debugging console window. It's pretty easy to create a window which contains just a multi-line text or list view. (If you want something fancier, consider borrowing code from iTerm2 or other open source projects instead of trying to build a complete terminal.) If your debug information is being printed with some fancy macros, just change the macros to log to your list view.
If you're directly doing something like fprintf or syslog to do your logging, it might be simpler to create a wrapper app that launches the main app, and the wrapper creates the debugging console window and displays the main app's stdout and/or stderr. (This might be as simple as using popen.)
I am wondering if there is a public api/framework where I can set the computer sleep value and the display sleep value in a cocoa application on mac os x? I am interested in making a utility application that will place an icon in the menu bar, allow the user to create different power option settings and what not.
I am not interested in using any private frameworks as I want to develop this application for the Mac App Store.
I always find myself changing the energy saver and screen saver values when i'm a home and when I wont be at home. Because I use Carbonite, I always leave my machine running. When I'm at home, I like the screen saver to come on after so many minutes, but when I away, like when I'm at work or a sleep at night, I prefer the screen saver to be off and the screen to sleep after one minute of inactivity. It would be nice to not have to go into system preferences all the time to do this. Any one else agree?
Thanks,
You can create a wrapper around the pmset utility, which allows you to change the power management settings on the command line, using either system() or (better) an NSTask.