diff --git a/E902_RTL_FACTORY/setup/setup.sh b/E902_RTL_FACTORY/setup/setup.sh new file mode 100644 index 0000000..f2f26f1 --- /dev/null +++ b/E902_RTL_FACTORY/setup/setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +export CODE_BASE_PATH=`pwd` +echo "Root of code base has been specified as: $CODE_BASE_PATH" + diff --git a/README.md b/README.md index 823ca25..517e427 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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' ``` diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..b21c199 --- /dev/null +++ b/README.txt @@ -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 + + diff --git a/smart_run/logical/filelists/ip.fl b/smart_run/logical/filelists/ip.fl index ecc0d5e..a7dbd7d 100644 --- a/smart_run/logical/filelists/ip.fl +++ b/smart_run/logical/filelists/ip.fl @@ -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 diff --git a/smart_run/logical/filelists/sim.fl b/smart_run/logical/filelists/sim.fl index 043a459..814a3b5 100644 --- a/smart_run/logical/filelists/sim.fl +++ b/smart_run/logical/filelists/sim.fl @@ -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 diff --git a/smart_run/logical/filelists/smart.fl b/smart_run/logical/filelists/smart.fl index 6648c03..27571b4 100644 --- a/smart_run/logical/filelists/smart.fl +++ b/smart_run/logical/filelists/smart.fl @@ -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 diff --git a/smart_run/logical/filelists/tb.fl b/smart_run/logical/filelists/tb.fl index 41c96d8..39f8ec6 100644 --- a/smart_run/logical/filelists/tb.fl +++ b/smart_run/logical/filelists/tb.fl @@ -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+ diff --git a/smart_run/setup/example_setup.sh b/smart_run/setup/example_setup.sh new file mode 100644 index 0000000..6cb9720 --- /dev/null +++ b/smart_run/setup/example_setup.sh @@ -0,0 +1,7 @@ +#!/bin/csh + +export TOOL_EXTENSION=/tools/riscv/riscv64-elf-x86_64/bin +echo 'Toolchain path($TOOL_EXTENSION):' +echo " $TOOL_EXTENSION" + + diff --git a/smart_run/tests/bin/Srec2vmem b/smart_run/tests/bin/Srec2vmem old mode 100644 new mode 100755