Skip to content

Output the command that sends to the simulator #1109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yangyt96 opened this issue Apr 18, 2025 · 2 comments
Open

Output the command that sends to the simulator #1109

yangyt96 opened this issue Apr 18, 2025 · 2 comments

Comments

@yangyt96
Copy link

yangyt96 commented Apr 18, 2025

Can you add a debugging option to output the command which is send to the simulator, for example:

vlog -v2k5 -incr -l xpm -l xil_defaultlib -work xil_defaultlib  "+incdir+../../../../project.ip_user_files/ipstatic" \
	"../../../../project.gen/sources_1/ip/test_ip/test_ip.v" \
	"../../../../project.gen/sources_1/ip/test_ip/test_ip.v" \

vcom -93 -incr -work xil_defaultlib  \
	"../../../../../../tb/mmcm/mmcm_tb.vhd" \

vlog -work xil_defaultlib "glbl.v"

It only pop-ups the command when there is compilation/simulation error, however I think it is necessary for debugging purpose to check whether the command line is correct or not.

For example, some specific command for Vivado IP core simulation is required, this will result different simulation output. (The compilation and simulation can pass without error, but some special option is required to add to the simulator and I would like to know whether it is added correctly.)

@LarsAsplund
Copy link
Collaborator

Have you tried running with the --log-level=debug and -v options? Does it help?

@yangyt96
Copy link
Author

yangyt96 commented Apr 21, 2025

It does not help, the --log-level=debug and -v only gives me the message of

DEBUG - Adding source file <souce-path> to library <library-name>
DEBUG - Adding primary design unit (package) <entity-name>
DEBUG - Adding secondary design unit (package body) for package <entity-name>
DEBUG - The file <file-path> has no components

This only tells me the logging step and a lot of info are not covered.

I would like to see the command line which is sent to the simulator as the example I have shown above:

vlog -v2k5 -incr -l xpm -l xil_defaultlib -work xil_defaultlib  "+incdir+../../../../project.ip_user_files/ipstatic" \
	"../../../../project.gen/sources_1/ip/test_ip/test_ip.v" \
	"../../../../project.gen/sources_1/ip/test_ip/test_ip.v" \

vcom -93 -incr -work xil_defaultlib  \
	"../../../../../../tb/mmcm/mmcm_tb.vhd" \

vlog -work xil_defaultlib "glbl.v"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants