Can someone kindly explain me why in a Vivado project, under simulation, there is a directory called "Sim1"? If I create different testbeches, should I put each testbench in a different directory? What about if I create an other directory called "Sim2"? Thanks!
Because you can define different simulation sets. Please open Settings in your Project Manager and choose the tab Simulation. You will find a field called Simulation Set. Use this to define another simulation set, for example sim_2. You can define different testbenches in your sets, so you can easily switch between different test cases.
Please see the following example:
I have a design with two different testbenches (in this case the testbenches are the same), and so I create two simulation sets.
Each set has his own testbench and his own waveform configuration file (containing the signals, the layout and the formatting of each signal).
You can change the set by right clicking the chosen set and clicking Make Active:
The set changes to sim_1. The testbench of sim_1 is set as Top and the waveform configuration file is used for the simulation.
Note: Each set needs a top file, so Vivado will ask you for a top file when you switch to a set without a top file.
I have used Add Simulation File, then I have created the new directory and I have created the file auto_check_tb, which is under Non-Module Files
Related
I am running a test to compare output data of the system to a set of golden data generated on a text file, but when the test runs to around 2000 frames +, I start getting an error where is says:
warning-Cannot open file
file could not be opened. Too many open files.
I tried to look for a system task in SystemVerilog to see if there is a task that can show all currently open files while the test is running, but I can't seem to find one. Is there a way for this to be done?
I don't think the IEEE Std 1800-2017 offers any way to directly know how many files are currently open.
However, you could look at the integer value returned by $fopen to see the value of the last file descriptor which was opened. When I open many files, the value increments by one every time a new file is opened. I tried this on 2 simulators.
Keep in mind that there are 2 ways to call $fopen: multichannel descriptor and file descriptor. They return different values.
Perhaps your simulator has a proprietary way to check for the number of open files. Look through your documentation, or contact the vendor for support.
Responding to the root cause issue:
warning-Cannot open file
file could not be opened. Too many open files.
To read and write more files use the system task(s) $readmemh, $readmemb, $writememh, $writememb accessing the contents using arrays. These don't use $fopen().
See the IEEE 1800 2017 SystemVerilog specification, section 21.4 and 21.5
Another alternative: Concatenate files so that total number files to access is less.
I want to disable certain keys while creating image in yocto. I know in users pace we can achieve this with xmodmap utility but I want to achieve this kernel itself.
I checked drivers/try/vt/defkeymap.map file and modified as per my requirement but loadkeys not able to generate defkeymap.c file. It throws this error:
/bin/sh: 1: loadkeys: not found.
Am I going in the right direction? Or is there any other option to change default keycode map?
The raw keyboard data is scan codes that the keyboard driver converts into key codes cf https://unix.stackexchange.com/questions/319787/how-does-the-linux-kernel-handle-keyboards-inputs-outputs. A way to generate a custom keyoard layout for console is in https://wiki.archlinux.org/index.php/Linux_console/Keyboard_configuration#Creating_a_custom_keymap, so you do not edit a driver file, loadkeys requires changes in specific directory / file :
As a side note, it is worth noting that such a personal keymap is
useful also to redefine the behaviour of keys already treated by the
default keymap: when loaded with loadkeys, the directives in the
default keymap will be replaced when they conflict with the new
directives and conserved otherwise. This way, only changes to the
keymap must be specified in the personal keymap.
source : https://wiki.archlinux.org/index.php/Linux_console/Keyboard_configuration#Creating_a_custom_keymap
If you want to do this on kernel module level you have to rewrite or patch the entire keyboard module.
In https://unix.stackexchange.com/questions/319787/how-does-the-linux-kernel-handle-keyboards-inputs-outputs is many essential information ( links to source code, ... ) for all levels, including solving this issue on kernel module level ( writing / patching kernel module )
I run simulations for various choices of parameters. For each choice I store the resulting data in a folder, like
/home/me/Documents/MyProject/C=10/1.dat
/home/me/Documents/MyProject/C=10/2.dat
/home/me/Documents/MyProject/C=10/3.dat
...
and
/home/me/Documents/MyProject/C=20/1.dat
/home/me/Documents/MyProject/C=20/2.dat
/home/me/Documents/MyProject/C=20/3.dat
...and so forth.
would like to write a little text file AAA.txt which contains not just the C parameter but all the others too. Then when viewing this folder which contains the data I want to hold my cursor on the little file symbol and have a little box appear. This box should show just the content of AAA.txt, so I can quickly check which set of parameters was used in this particular run.
Anyone know how to do this? I use Ubuntu 14.04
I am not aware of ways to give you a custom "tooltip". As an alternative, you could look into creating custom thumbnails of your .dat files.
See here for how to do that with nautilus; the default file browser for Ubuntu.
Alternatively, you might look into what Gloobus can do for you.
In our Software we want that the user to open a project file with different number of items (similar as in a Visual Studio Project) and he should be able to extract and insert these items from external sources (from other project, for example). I know the user should open projects, save projects, extract and insert items but, in terms of UML Use Case Diagrams, I don't know how to represent the three last user cases:
Either as extensions from the first one, that only exist after the first user story occurs.
Or representing the user case Open Project as an included Use case from the other three.
In the picture I have the two Use Case Diagrams. Are they both good?
Ask yourself: is Open Project a use case? What is the added value? I guess there is none at all. So if there is no added value, it is not a use case. And if it is no use case, you don't need a bubble.
I don't think either one of your solutions is correct.
The diagram with the extends indicates that we we might save a project while opening a project, which seems odd to me.
The diagram on the right says the inverse, while saving a project we also open a project. Again that seems wrong to me.
From my viewpoint these use cases all need to be separate use cases without an extend or include relation between them. They all seem to be somewhat on the same level. I can imagine that each of the use cases could be triggered by a single menu option.
I have a load test project that I run regularly from the Visual Studio using the Load Test GUI. I would like to run that test from the command line by changing its parameters such as the number of users, run duration etc.
In visual studio load test, there are usually 3 type of settings that I usually play around.
Test setting: for general controller and agent assignments.
Run settings: in which I set the run duration, where to save the logs of the test results etc.
Scenario settings: used to set the load pattern and test mix etc.
Ideally I should be able to change any of these settings using some command line parameters of MSTEST utility or assigning a setting file for each goal, however I haven't been able to accomplish that setting change using the MSTEST command line options. I am able to run the load test using the state where I left off before exiting the GUI, however I cannot set the runsetting that is not currently active or I cannot change the user load defined in the scenario settings.
For my current task, being able to change the user load from the command line is more urgent than changing other parameters. So if someone knows how to change Scenario Settings from the command line that would be great help. I already tried creating more than one scenario with different number of users however in Visual Studio, seems like it is not possible to select particular scenario and execute test using it. Once the load test starts, it runs every available scenarios sequentially. So I think for my purpose I should create only one scenario and be able to change the user load from command line somehow.
Thanks for the help in advance.
As far as I know, none of those items are available as command line options or similar. But all, or possible just most, are available programmatically via a load test plugin. One possible solution for you is to set the required values in the LoadTestStarting event. The values could be read from a file or from environment variables; you choose what values are available and how to represent them.
This Microsoft blog introduces load test plugins and has several examples.
This is the MSDN doc on how to set test settings you want active from command line with MSTest.
https://msdn.microsoft.com/en-us/library/ff426021.aspx
Unfortunately, I haven't been able to find a way to change the step load pattern (and user count within).