argv gets mangled with cadence xcelium
See original GitHub issueI see that ARGV gets mangled when using excelium. cocotb crashes, complaining about invalid utf8 characters.
The curious thing is: it only happens to the argument after the -f switch. I have modified VpiStartupCbHdl::run_callback()
in VpiCbHdl.cpp to print info.argv and when i have
xrun -v93 -f xrun_files_cmd -timescale 1ns/1ps -licqueue ...
out comes:
xrun -v93 -f ��� -timescale 1ns/1ps -licqueue ...
If I move the -f option around, the filename stays mangled. If I have multiple -f options, i get multiple garbled filenames. All other options go through fine.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Aargh!!! How Can I Read Arguments from the Command ...
Let's take as an example a user who would like to pass the name of a file which includes input parameters to the...
Read more >A Digital Design Flow - From Concept to RTL Description, ...
To verify the code, Cadence's Xcelium will be used together with Mathworks' HDL Verification toolbox to simulate the produced code using.
Read more >GLS | PDF | Hardware Description Language | Simulation
resolutions to the issues using the Cadence Xcelium simulator. Audience ... takes time, and is much slower than zero delay or unit delay...
Read more >Verilator
This script takes the version number, and all remaining arguments are passed ... Mentor Questa/ModelSim (tm), Cadence Xcelium/Incisive/NC-.
Read more >PC & Laptop - Cadence XCELIUM version 19.09.001
Cadence XCELIUM version 19.09.001 | 8.6 Gb Updated: Reupload due ... 2066940 CORE_COVERAGE Getting issue in dumping code coverage data base.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Under my proposal,
argv[n] == fname
,argv[n].argv = ['flags', 'in', 'file']
, recursively if neededI think I found the answer to this.
From the 2001 standard:
From the 2005 standard (worded slightly differently):
So the number is a pointer to an array of pointers, each one of those a pointer to a string. Looks like 2001 indicates a
-f
option, but 2005 allows for other options.