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

why the code update 11.02 is incompatible with Makefile? #50

Closed
CrazyBingo opened this issue Nov 10, 2017 · 3 comments
Closed

why the code update 11.02 is incompatible with Makefile? #50

CrazyBingo opened this issue Nov 10, 2017 · 3 comments

Comments

@CrazyBingo
Copy link

CrazyBingo commented Nov 10, 2017

Hello:
When download the hw-master announced in 10.19, after modify the software environment variable and Designware libs, I can run the script and successfully pass the sanitys.
While I download the hw-master update in 11.02(has modify the software environment variable and Designware libs as well), it goes wrong while I run the case. The reason why is that there is no “../../outdir/nv_Large/vmod/..”ptah, even if I build the path "ourdir/nv_large", and put the vmod to this path, it failed again, while there is no "../vmod/nvdla/bdma/.v", actually there is no code about it.
So the code is incompatible with the Makefile? or I have done sth. wrong?

@CrazyBingo CrazyBingo changed the title why the code update 11.02 is compatible with Makefile? why the code update 11.02 is incompatible with Makefile? Nov 10, 2017
@zdraw
Copy link
Contributor

zdraw commented Nov 10, 2017

I assume you're talking about the simulation Makefile, please correct me if I'm wrong.
The code base has started to introduce ways to configure the RTL. Part of this includes a preprocess step before the simulation Makefile can be called.
The steps are run "make" at hw/. This sets up paths and projects (nv_large or nv_small) You may need to provide input if your tools paths are different than ours. Since you had the original nv_large code, I suggest only trying to build nv_large)
You can double check or modify the paths and projects by opening tree.make after you're done.
You should also set PERL_ROOT and put this in your PATH variable. I have to do the following:
setenv PERL_ROOT /home/utils/perl-5.8.8
setenv PATH $PERL_ROOT/bin:$PATH
Then run "tools/bin/tmake" to run the preprocessor on the design. The outputs are placed in outdir/nvlarge

At this point you should be able to run the simulation Makefile as before. I suggest doing "make clean" in hw/verif/sim to clean out the old build objects before doing "make build" to create the simv.

@zdraw
Copy link
Contributor

zdraw commented Nov 13, 2017

Closing. Please reopen if you're still seeing that error.

@zdraw zdraw closed this as completed Nov 13, 2017
@CrazyBingo
Copy link
Author

CrazyBingo commented Nov 29, 2017

I'm sorry to be a little busy on a business trip, Return this topic back now.
Today I have down the code of 20171121, and done as you said:
1: hw path make, input c++/perl/gcc+java path and nv_largd
2: set perl variable in .cshrc
3: then run hw/tools/bin/tmake, but there is sth. wrong tha can not load YAML.pm and interrupted, which is execute: use YAML qw(LoadFile)
@zdraw

the error is like that:
Can't locate YAML.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./tmake line 8.
BEGIN failed--compilation aborted at ./tmake line 8.

seems that perl path variable is wrong,..

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