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

Docker install of SAIL does not seem to be supported by risocf_sail_cSim.py plugin template #99

Open
Barabas5532 opened this issue Sep 15, 2023 · 1 comment

Comments

@Barabas5532
Copy link

In this documentation page, https://riscof.readthedocs.io/en/latest/installation.html#install-plugin-models, there is an option to install the SAIL emulator as a docker image. After installing the docker image, and trying to run the tests, I get this error:

   ERROR | riscv_sim_RV32: executable not found. Please check environment setup.

It looks like the project template does not care about the docker flag in the config, and assumes that SAIL is installed locally. It never reads the docker or image parameters in the config, and never calls out to docker. The only references I could find to docker in this repo are in the docs.

self.sail_exe = { '32' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_RV32"),
'64' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_RV64")}

if shutil.which(self.sail_exe[self.xlen]) is None:
logger.error(self.sail_exe[self.xlen]+ ": executable not found. Please check environment setup.")

Is there actually no docker support in the built-in SAIL plugin or am I missing something?

@Barabas5532
Copy link
Author

Seems like docker support is available in this version of the plugin: https://gitlab.com/incoresemi/riscof-plugins/-/commit/2305fbf12a0fdc44a0a26821e53f445471a93cc5

Why is there a separate copy of the plugin being maintained elsewhere?

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

1 participant