跳转到主要内容

包含CV32E40S cpu的系统Verilog文件的Python模块。

项目描述

pythondata-cpu-cv32e40s

将cpu cv32e40s打包成Python模块所需的非Python文件,以便它们可以使用Python库和工具。

这对于使用LiteX等工具非常有用。

数据文件可以在Python模块pythondata_cpu_cv32e40s下找到。可以使用pythondata_cpu_cv32e40s.data_location值在文件系统中查找文件。

获取数据文件的示例;

import pythondata_cpu_cv32e40s

my_data_file = "abc.txt"

with open(os.path.join(pythondata_cpu_cv32e40s.data_location, my_data_file)) as f:
    print(f.read())

使用litex.data.find API获取数据文件的示例;

from pythondata_cpu_cv32e40s import data_file

my_data_file = "abc.txt"

with open(data_file(my_data_file)) as f:
    print(f.read())

数据文件来自https://github.com/openhwgroup/cv32e40s,并使用git subtrees导入到目录pythondata_cpu_cv32e40s/system_verilog

安装

直接从git存储库

手动

您可以手动安装此包,但强烈不建议这样做。

git clone https://github.com/litex-hub/pythondata-cpu-cv32e40s.git
cd pythondata-cpu-cv32e40s
sudo python setup.py install

使用 pip 与 git 仓库结合

您可以使用 pip 直接从 github 安装数据包,方法如下;

pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40s.git

如果您想为整个系统安装,而不仅仅是当前用户,则需要删除 --user 参数并以 sudo 运行,如下所示;

sudo pip install git+https://github.com/litex-hub/pythondata-cpu-cv32e40s.git

您可以使用以下方式安装存储库的特定版本;

pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40s.git@<tag>
pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40s.git@<branch>
pip install --user git+https://github.com/litex-hub/pythondata-cpu-cv32e40s.git@<hash>

使用 requirements.txt 文件

使用以下方法将内容添加到您的 Python requirements.txt 文件中;

-e git+https://github.com/litex-hub/pythondata-cpu-cv32e40s.git

要使用存储库的特定版本,请使用以下内容;

-e https://github.com/litex-hub/pythondata-cpu-cv32e40s.git@<hash>

通过 PyPi

使用 pip

pip install --user pythondata-cpu-cv32e40s

使用 requirements.txt 文件

使用以下方法将内容添加到您的 Python requirements.txt 文件中;

pythondata-cpu-cv32e40s

问题和修复

此包由 https://github.com/openhwgroup/cv32e40s 中的源代码自动生成,使用 pythondata-auto 工具集。可能不会监控此 pythondata 仓库的拉取请求和问题。

项目详情


发布历史 发布通知 | RSS 源

下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分发

pythondata-cpu-cv32e40s-0.6.0.post175.tar.gz (881.2 kB 查看哈希值)

上传时间

构建分发

pythondata_cpu_cv32e40s-0.6.0.post175-py3-none-any.whl (986.7 kB 查看哈希值)

上传时间 Python 3

由以下支持