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

mutiple fix #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions E902_RTL_FACTORY/setup/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

export CODE_BASE_PATH=`pwd`
echo "Root of code base has been specified as: $CODE_BASE_PATH"

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

```
$ cd E902_RTL_FACTORY
$ source setup/setup.csh
$ source setup/setup.csh #for bash, please 'source setup/setup.sh'
$ cd ../smart_run
$ make help
To gain more information about how to use smart testbench.
Expand All @@ -39,7 +39,7 @@ $ cd ./smart_run
GNU tool chain (specific riscv version) must be installed and specified before
compiling *.c/*.v tests of the smart environment. Please refer to the following
setup file about how to specify it:
./smart_run/setup/example_setup.csh
./smart_run/setup/example_setup.csh #for bash, please refer to './smart_run/setup/example_setup.sh'
```


Expand Down
19 changes: 19 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
OpenE902环境设置


1.解压缩Xuantie-900-gcc-elf-newlib-x86_64-V2.6.1.tar.gz

2.设置环境变量添加到~/.bash_profile或者~/.bashrc的最后
# E902 chip setup
export CODE_BASE_PATH=/home/abcd/opene902/E902_RTL_FACTORY
export TOOL_EXTENSION=/home/abcd/Xuantie-900-gcc-elf-newlib-x86_64-V2.6.1/bin

其中的abcd需要依据实际路径进行修改

3.重新退出登录,以便使得环境变量设置生效

4.执行测试
cd opene902/smart_run
make runcase CASE=hello_world SIM=vcs


14 changes: 0 additions & 14 deletions smart_run/logical/filelists/ip.fl
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
/*Copyright 2018-2021 T-Head Semiconductor Co., Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
-f ${CODE_BASE_PATH}/gen_rtl/filelists/E902_asic_rtl.fl
14 changes: 0 additions & 14 deletions smart_run/logical/filelists/sim.fl
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/*Copyright 2018-2021 T-Head Semiconductor Co., Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
-f ../logical/filelists/ip.fl
-f ../logical/filelists/smart.fl
-f ../logical/filelists/tb.fl
15 changes: 0 additions & 15 deletions smart_run/logical/filelists/smart.fl
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
/*Copyright 2018-2021 T-Head Semiconductor Co., Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

+libext+.v+.h+.V+.sv+

-y ../logical/ahb
Expand Down
14 changes: 0 additions & 14 deletions smart_run/logical/filelists/tb.fl
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/*Copyright 2018-2021 T-Head Semiconductor Co., Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
+libext+.v+.h+.V+.sv+

+incdir+../logical/tb+
Expand Down
7 changes: 7 additions & 0 deletions smart_run/setup/example_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/csh

export TOOL_EXTENSION=/tools/riscv/riscv64-elf-x86_64/bin
echo 'Toolchain path($TOOL_EXTENSION):'
echo " $TOOL_EXTENSION"


Empty file modified smart_run/tests/bin/Srec2vmem
100644 → 100755
Empty file.