Questions tagged [vlab]

VLAB is a programmable and interactive environment for the assembly, configuration, programming and operation of electronic system level simulations, such as virtual system prototypes, virtual platforms and other VLAB applications.

8 questions
2
votes
1 answer

How to tell whether elaboration has completed at a breakpoint?

When I hit a breakpoint in a VLAB script, how can I find out if I have caused elaboration to finish or not, yet? My script reaches a statement that raises an error: Error: (E529) insert module failed: elaboration done (The command that causes this…
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
1
vote
1 answer

How to have a run script with display_trace() in it for debug purposes

I have a typical sort of "run" script (below). When I want to debug the scenario, I use VLAB GUI ... and in this instance I want the trace window open, so I have display_trace() at the end of the run script. However, often I just want to run this…
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
0
votes
0 answers

why the program omitted some lines? (c program to encrypt text)

i am trying to make a program that encrypt text with a Caesar cipher.The number of positions to shift will be given to the program as a command line argument and characters other than letters should not be encrypted. The program should stop only at…
0
votes
2 answers

How to log sc_logic values using semantic?

I need to convert this code: bool hw = (gpio_ctrl(idx) >> 5) & 1; uint8_t cnfg = (gpio_ctrl(idx) >> 3) & 3; sc_dt::sc_logic oe_n = Log_1; // Default disable sc_dt::sc_logic od = Log_Z; // Default disable DEBUG_PRINTF(("GPIO update_ouput: CTRL=0x%x…
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
0
votes
1 answer

How to avoid typing the arguments to run() all the time

In my VLAB python scripts, I am repeatedly typing the same arguments for time_unit and blocking: # nothing for a while write_port("pwm_0.period", 0) run(200, "ns", blocking=True) # start a waveform write_port("pwm_0.period", 100) # see it…
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
0
votes
1 answer

How do I optionally set a platform/model attribute from my run script?

I'm using the VLAB MPC5xxx Toolbox. I have a run script that is controlling my simulation, which loads the platform in the usual way, then runs it: import vlab import os import sysc image_path = os.path.join('o5e', …
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
0
votes
1 answer

Display an image on the screen during VLAB simulation

I am scripting a SystemC simulation demo under VLAB. How can I display an image on the screen, as one of the things the demo does at it runs? I tried opening a window and displaying an image using wx, but this required me to create a wxApp, which…
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
-1
votes
1 answer

how can I get the method to be outside of the main method in vlab

This is an assignment in vlab. I know the method needs to be outside the main method but I can't seem to understand how I can do it between the two comments. You can not edit the code outside of the // your code starts here and your code ends…
nate998
  • 11
  • 2