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.

Automatically deduction of TOPLEVEL_LANG doesn't work

See original GitHub issue

Hi. It is my first time using cocotb with Xcelium (always GHDL or iverilog). Has far I understand it must work, but fail.

  • the cocotb version used: 1.5.2
  • the operating system and version: Centos7, 64 bits
  • the simulator and version: Xcelium (19.09), 64 bits
  • the Python version, and where it’s coming from: 3.7.0 (pyenv)

Log:

/.../.pyenv/versions/3.7.0/lib/python3.7/site-packages/cocotb/share/makefiles/simulators/Makefile.xcelium:103: *** "A valid value (verilog or vhdl) was not provided for TOPLEVEL_LANG=".  Stop.

Makefile

#TOPLEVEL_LANG=verilog

VERILOG_SOURCES += ../vlog/counter.v
TOPLEVEL = counter
MODULE = counter

include $(shell cocotb-config --makefiles)/Makefile.sim

clean::
	@rm -fr __pycache__ *.vcd *.xml

I need to uncomment TOPLEVEL_LANG. to avoid this.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ktbarrettcommented, Sep 3, 2021

So I added a print at line 112 above and it started working. Seems like it’s a gmake bug… Also tried with other simulators and see the same problem.

0reactions
rodrigomelo9commented, Sep 1, 2021

But I have only Verilog files… one Verilog file to be more precise. I wrote also mi Makefile in the issue description:

#TOPLEVEL_LANG=verilog

VERILOG_SOURCES += ../vlog/counter.v
TOPLEVEL = counter
MODULE = counter

include $(shell cocotb-config --makefiles)/Makefile.sim

clean::
	@rm -fr __pycache__ *.vcd *.xml

I didn’t set VHDL_SOURCES.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Driving Down Taxes: Auto-Related Tax Deductions - TurboTax
Knowing all of the auto-related deductions can ensure that your automobile is working as hard for you as you are for your paycheck....
Read more >
Topic No. 551 Standard Deduction | Internal Revenue Service
The standard deduction is a specific dollar amount that reduces the amount of income on which you're taxed. Your standard deduction consists ...
Read more >
How to Claim the Standard Mileage Deduction – Get It Back
The most important tax deduction for rideshare drivers is the mileage ... Both apps work by using the location on your phone to...
Read more >
What are Payroll Deductions? | Pre-Tax & Post-Tax ... - ADP
1. Adjust gross pay by withholding pre-tax contributions to health insurance, 401(k) retirement plans and other voluntary benefits. 2. Refer to the employee’s...
Read more >
Deductions From Wages
Although a wage garnishment is a lawful deduction from wages under Labor Code ... Furthermore, DLSE does not automatically assume that an employee...
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