Skip to content
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

Undefined macros and classes #12

Open
faayez-10xe opened this issue Feb 22, 2024 · 0 comments
Open

Undefined macros and classes #12

faayez-10xe opened this issue Feb 22, 2024 · 0 comments
Assignees

Comments

@faayez-10xe
Copy link

Issue Title
Undefined macros and classes

Problem Description
I am using this repo [https://github.com/openhwgroup/core-v-mcu-uvm] and compiling according to the README file after completing all the pre-requisites mentioned in README. But while executing this command "mio sim uvmt_cvmcu_chip -t reg_bit_bash -s 1 -v high -w -a mdc" in Simulation Section I have faced the following errors: (screenshot is attached below)
Screenshot from 2024-02-19 18-58-11

Here are the steps I followed:
Step 1:
git clone https://github.com/openhwgroup/core-v-mcu-uvm.git
Screenshot from 2024-02-20 15-49-55

Step 2:
Created a free Moore.io IP Marketplace user account

Step 3:
Installed the [Moore.io] using : pip3 install mio-cli
Screenshot from 2024-02-20 15-27-30

Step 4:
Checked whether mio-cli installed successfully using: mio --help
Screenshot from 2024-02-20 15-33-19

Encountered error while doing this. Resolved them by replacing get_edatools with edatool when I did import and then added edatool. before calling get_edatools in below given files.

  1. ~/.local/lib/python3.10/site-packages/fusesoc/main.py
  2. ~/.local/lib/python3.10/site-packages/fusesoc/capi2/core.py

Before:
Screenshot from 2024-02-20 15-35-19
After:
Screenshot from 2024-02-20 15-36-16

Before:
Screenshot from 2024-02-20 15-36-54
After:
Screenshot from 2024-02-20 15-37-31

After resolving these issues, I ran mio --help again.
Screenshot from 2024-02-20 15-41-20

Step 5:
Downloaded and install the latest version of [Metrics DSim Cloud]
using these given commands:

  1. /bin/bash -c "$(curl -fsSL https://releasedist.blob.core.windows.net/dist-dev-releases/install_scripts/install_linux.sh)"
    2./usr/local/bin/mdc --version
    3.which mdc

Screenshot from 2024-02-20 15-41-51

Screenshot from 2024-02-20 15-43-13

Screenshot from 2024-02-20 15-44-12

Step 6:
Set an environment variable for the MDC installation location: export MIO_METRICS_HOME=/usr/local/bin
Screenshot from 2024-02-20 15-46-37

Screenshot from 2024-02-20 15-47-52

Step 7:
Getting the MCU RTL using: git submodule update --init
Screenshot from 2024-02-20 15-55-01

Step 8:
The UVM libraries from Datum must first be installed: mio install uvmt_cvmcu_chip
Screenshot from 2024-02-20 15-55-33

Step 9:
To run compilation, elaboration and simulation for IP uvmt_cvmcu_chip, test reg_bit_bash, seed 1, high verbosity, with waveform capture enabled, using Metrics DSim Cloud simulator: mio sim uvmt_cvmcu_chip -t reg_bit_bash -s 1 -v high -w -a mdc

During this encountered this error.
Screenshot from 2024-02-20 16-17-17

I resolved this one by logging into mdc using: mdc auth login
Then initializing mdc using: mdc initialize
Screenshot from 2024-02-20 16-22-04

Screenshot from 2024-02-20 16-34-41

Step 10:
Then I run this command for compilation, elaboration and simmulation for IP uvmt_cvmcu_chip, test reg_bit_bash, seed 1, high verbosity, with waveform capture enabled, using Metrics DSim Cloud simulator:

mio sim uvmt_cvmcu_chip -t reg_bit_bash -s 1 -v high -w -a mdc

Screenshot from 2024-02-20 16-38-00

Log file (core-v-mcu-uvm/sim/cmp/uvmt_cvmcu_chip.mdc.log), which is created in this process, gives these errors
Screenshot from 2024-02-20 16-38-23

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