question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide "COCOTB_SIM_DEBUG" Makefile variable

See original GitHub issue

For the kind of debugging work in #639, it would be good to have a documented Makefile variable like COCOTB_SIM_DEBUG which would switch options like Cadence Incisive/Xcelium’s -plinowarn and -pliverbose. Does anyone know examples of such switches for other simulators?

Example code:

ifeq ($(COCOTB_SIM_DEBUG),1)
    EXTRA_ARGS += -pliverbose
    EXTRA_ARGS += -messages
else
    EXTRA_ARGS += -plinowarn
endif

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cmarqucommented, May 23, 2020

Closing as we want to get rid of as many variables as possible, see #1495.

0reactions
cmarqucommented, Mar 9, 2020

@wallento What do you think about the idea of throwing together VERILATOR_SIM_DEBUG and VERILATOR_TRACE under COCOTB_SIM_DEBUG?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GNU make - How to Use Variables
A variable is a name defined in a makefile to represent a string of text, called the variable's value. These values are substituted...
Read more >
Passing additional variables from command line to make
You have several options to set up variables from outside your makefile: From environment - each environment variable is transformed into a makefile...
Read more >
Setting a Makefile Variable From Outside the Makefile
A simple way to handle this is with a Makefile variable called BUILD_DEBUG which is set to yes in the Makefile and overriden...
Read more >
Build options and Environment Variables
Typically the makefiles provided with cocotb for various simulators use a separate compile and run target. This allows for a rapid re-running of...
Read more >
3. Variables and Macros - Managing Projects with GNU Make ...
There are two other assignment operators provided by make . The ?= operator is called the conditional variable assignment operator. That's quite a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found