
shell_linux
鲸鱼粑粑
这个作者很懒,什么都没留下…
展开
-
vcs_dve+sverilog
1. 启动仿真: 在putty服务器进入含有vcs_go(编写的编译脚本)脚本文件的路径(工程路径)下,运行./vcs_go脚本makefile 运行结束后,输入dve -mode64打开vcs,在GUI点击open database,打开wave.vpd,可任意添加信号查看仿真结果; 2. 退出仿真: tb中要写$finish;会直接仿真完成后退出,如果使用$stop,就要使用下面的快捷键退出: ctrl+z 强制退出 ctrl+c 暂停 出现冒号: 输入q 回车 可退出 推荐第二种方法,安全,完成了整原创 2020-08-05 10:06:28 · 1306 阅读 · 0 评论 -
chmod
为test.sh增加可执行权限 chmod +x ./test.sh u 表示该文件的拥有者,g 表示与该文件的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。 + 表示增加权限、- 表示取消权限、= 表示唯一设定权限。 r 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该文件是个子目录或者该文件已经被设定过为可执行。 -c : 若该...原创 2020-01-20 14:48:19 · 167 阅读 · 0 评论 -
-bash: ./test0.sh: /bin/bash^M: bad interpreter: 没有那个文件或目录
[yan_bingqing@FPGAT630 shell_test]$ chmod +x ./test0.sh [yan_bingqing@FPGAT630 shell_test]$ ./test0.sh -bash: ./test0.sh: /bin/bash^M: bad interpreter: 没有那个文件或目录 原因:window下编译的格式需要转成unix格式的; 1.查看foma...原创 2020-01-20 14:38:34 · 326 阅读 · 0 评论 -
linux中如何通过echo输出!(叹号)? -bash: !": event not found
linux中如何通过echo输出!(叹号)? -bash: !": event not found 例如 #!/bin/bash echo "hello world!" 会报错-bash: !": event not found 但是!前后加上空格,就不会报错了 echo "hello world ! " ...原创 2020-01-20 14:38:43 · 1012 阅读 · 0 评论