Code Monkey home page Code Monkey logo

Comments (7)

jerryz123 avatar jerryz123 commented on May 24, 2024 1

Can you try chipyard 1.9.1?

from constellation.

ashuthosh-mr avatar ashuthosh-mr commented on May 24, 2024

Update on this.

There was an issue with makefile which always took TestHarness as top-module. I changed it to EvalHarness, it worked.

However, I came up with new errors: /home/mypc/chipyard/.conda-env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: TrafficEval.o: in function netrace_traffic_eval_t::ingress_tick(unsigned long, unsigned long, char, bool, bool)': TrafficEval.cpp:(.text+0x15f5): undefined reference to nt_read_packet'
and few more undefined references to others as well.

Finally an error: make: *** [Makefile:232: /home/mypc/chipyard/sims/verilator/simulator-constellation.test-EvalTestConfig00-debug] Error 2

from constellation.

jerryz123 avatar jerryz123 commented on May 24, 2024

I'll try this right now,

from constellation.

ashuthosh-mr avatar ashuthosh-mr commented on May 24, 2024

I tried setting 1.9.1 from scratch. I got upto this point with no problems: Setup complete!
To generate simulator RTL and run metasimulation simulation, source env.sh
To use the manager to deploy builds/simulations on EC2, source sourceme-f1-manager.sh to setup your environment.
To run builds/simulations manually on this machine, source sourceme-f1-full.sh to setup your environment.
.
.
Then I got an error:
/home/mypc/chipyard/software/firemarshal/logs/br-base-build-2023-06-09--15-45-23-PVXUBEWNN88O8K89.log
. /home/mypc/chipyard/software/firemarshal/boards/firechip/base-workloads/br-base/host-init.sh
. /home/mypc/chipyard/software/firemarshal/images/firechip/br.947c/br.947c.img
TaskError - taskid:/home/mypc/chipyard/software/firemarshal/images/firechip/br.947c/br.947c.img
PythonAction Error
Traceback (most recent call last):
File "/home/mypc/chipyard/.conda-env/lib/python3.10/site-packages/doit/action.py", line 461, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/home/mypc/chipyard/software/firemarshal/boards/firechip/distros/br/br.py", line 193, in buildBaseImage
wlutil.run(['make'], cwd=br_dir / "buildroot", env=env)
File "/home/mypc/chipyard/software/firemarshal/wlutil/wlutil.py", line 527, in run
raise sp.CalledProcessError(p.returncode, prettyCmd)
subprocess.CalledProcessError: Command 'make' returned non-zero exit status 2.

ERROR: Failed to build workload br-base.json
Log available at: /home/mypc/chipyard/software/firemarshal/logs/br-base-build-2023-06-09--15-45-23-PVXUBEWNN88O8K89.log
ERROR: FAILURE: 1 builds failed
.
.
.
However, The env.sh was incomplete. So, I used the env.sh of 1.8.1 and made an env.sh file with necessary changes. Simulating a rocket core, hello world worked fine.

Coming to constellation's test harness, no errors.
Evaluation framework worked further than it was before(1.8.1) but I still got an error with the make.

This is what I got:
.
.
.
chipyard/sims/verilator/generated-src/constellation.test.EvalHarness.EvalTestConfig00/gen-collateral/netrace.h:42:48: error: invalid conversion from 'void*' to 'nt_dep_ref_node_t**' {aka 'nt_dep_ref_node**'} [-fpermissive]
42 | #define nt_checked_malloc(x) _nt_checked_malloc(x,FILE,LINE)
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| void*
.
.
.
make[1]: *** [VEvalHarness.mk:90: netrace.o] Error 1
make[1]: Leaving directory '/home/mypc/chipyard/sims/verilator/generated-src/constellation.test.EvalHarness.EvalTestConfig00/constellation.test.EvalHarness.EvalTestConfig00.debug'
make: *** [Makefile:231: /home/mypc/chipyard/sims/verilator/simulator-constellation.test-EvalTestConfig00-debug] Error 2

from constellation.

jerryz123 avatar jerryz123 commented on May 24, 2024

Sorry, it looks like the way verilator invokes g++ just fundamentally breaks the netrace headers.
If you have access to VCS, you can follow the VCS flow.

If not, then the only other solution would be to comment out all references to trace in the evaluation harness C++ driver, including the #includes on netrace.h.

from constellation.

ashuthosh-mr avatar ashuthosh-mr commented on May 24, 2024

Alright. What might cause on commenting out the references and netrace.h?

from constellation.

jerryz123 avatar jerryz123 commented on May 24, 2024

You would not be able to run the C++ evaluation harness with netrace-provided trace files as the traffic source.

from constellation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.