栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

QuestaSim 仿真常用命令

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

QuestaSim 仿真常用命令

QuestaSim 仿真常用命令 1.编译命令 vlog
  • 命令格式:vlog [options] [...]

  • 命令选项

    • -cover[=],可指定为{b|c|e|s|f|t}

    • +define+[=],该选项等同于在编译源文件时添加``define `也可在一个+define后添加多个宏定义(也可以分开)

      vlog +define+one=r1+two=r2+three=r3 test.v

    • (-f | -file),对应一个参数文件,文件内可添加更多的编译选项内容

    • +incdir+,指明对于源文件中使用`include编译导向时将会查找对应文件的文件夹

    • (-l | -logfile)生成编译时的log记录文件。

    • -L 指定在编译时在哪些库中搜索预先编译的模块。

    • -novopt编译时不作优化

    • -lint编译时作语义检查(例如,为input端口赋值、访问未声明的变量、访问数组的范围越界等)

    • {+initmem | +initreg}[=][+{0|1│X│Z}],初始化{数组│变量},可以为(r|b|e),只对静态变量(例如硬件信号或者static变量)起作用

    • -quiet过滤一些加载库的信息,使得log信息更简洁

    • -timescale[ =]I[ ]/ 指明那些未指定时间单位的module/interface/program/package等。-timescale=1ns/1ps

    • -warning [,..]将指定消息严重级别降为warning级别

    • -work 在编译时将目标编译到指定的库中,库名可以是逻辑库名或者库的对应路径

2.编译相关命令 vlib/vdir
  • vlib 按照库指定路径和库名去创建库。
  • vdir -all显示当前所有编译库、预编译库中的内容。
  • vdir [-lib ][],显示指定库(库名或路径)的内容,或者指定模块的信息。
  • verror [-fmt | -full][-kind ] {-all | }显示{全部│指定msgNum},有关某一个指令的错误描述内容,便于理解错误。
3.仿真命令 vsim
  • 命令格式:vsim [options]

  • 命令选项

    • [-batch | -c | -gui | -i ]采用后台模式(-batch)、命令行模式(-c) 、用户界面模式(-gui)或者交互模式(-i) 。
    • -do "" | 传入并执行Tcl命令或者脚本文件。
    • -f 传入带有仿真选项的文件,可在仿真过程中解析并采用这些仿真选项。
    • [-g |-G]= ..., -g可以覆盖那些没有被显式赋值(采取默认值)的参数,而-G则可以覆盖那些已经被显式赋值的参数。
    • -immedassert | -noimmedassert,使能或禁止立即断言( immediate assertion)。
    • -solvefaildebug=,使能随机化失败调试,如果value不给值,则使能基本调试功能。
    • -sv_lib 导入DPI共享对象(shared object),用于导入DPI方法。
    • -sv_seed | random,用于指定仿真时的随机种子。
    • -title 在仿真窗口指定当前仿真的"标题",便于调试多个同时进行的仿真窗口。</li><li>-wlf <file_name>指定保存的保存文件,默认输出vsim.wlf。</li><li>-coverage使能覆盖率收集,但要求编译时添加+cover选项。</li><li>-viewcov [<dataset_name>=]<UCDB_filename>调用coverageview模式查看UCDB覆盖率数据。</li><li>-coverstore <dir_path> -testname <name>在仿真结束时保存覆盖率数据结果,必须要单独调用coverage save命令。</li><li>-default_radix <radix>在仿真时指定变量显示的默认格式({<!-- -->ascii | binary | decimal | hexadecimal | octal | symbolic | unsigned})</li><li>-uvmcontrol={all | certe | disable | msglog | none | struct | trlog | verbose}使能UVM有关调试功能。</li><li>-classdebug -msgmode both -uvmcontrol=all(应用方式)</li></ul> </li></ul> 4.存储相关命令 mem <ul><li> <p>mem list [-r][<path>]∶显示目标路径下的数组信号/变量。</p> </li><li> <p>mem display:显示目标mem的内容,相关命令mem search。</p> </li><li> <p>mem load:向目标mem中加载指定数据(从文件中或者命令行参数)。</p> </li><li> <p>mem save:将目标mem中的数据保存到指定文件。</p> </li></ul> 5.类调试相关命令 classinfo <ul><li>classinfo instances <class_type>:显示目标类的实例。</li><li>classinfo isa <class_type>:显示继承于目标类的子类。</li><li>classinfo stats:显示当前仿真有关类占据内存的状态信息。</li><li>classinfo types <pattern> :显示正则表达式中相关的类型名。</li></ul> 6.虚拟信号相关命令 virtual <ul><li>virtual region:创建虚拟层次。</li><li>virtual signal:创建虚拟信号。</li><li>virtual function:创建虚拟组合逻辑(可添加延迟)信号。</li><li>virtual show:显示仿真中的虚拟层次、信号。</li><li>virtual describe:对virtual信号进行详细说明。</li><li>virtual delete:移除virtual信号。</li></ul> 7.UVM调试交互 <p>前提: vsim -uvmcontrol=all -classdebug</p> <ul><li>uvm configtracing {0 | 1}︰跟踪configuration database set & get。</li><li>uvm displayobjections [<uvm_object_path>]:返回当前仿真中的objections raise & drop。</li><li>uvm findregisters [-acc] <uvm_reg_block_path>:返回寄存器模型后门映射的寄存器路径。</li><li>uvm findsequences [<component_path>]:返回当前仿真中的activesequences。</li><li>uvm handle <uvm_object_path>:返回UVM对象的句柄值。</li><li>uvm printconfig [<uvm_component_path> [<config_obj_name>]]:显示与目标组件和配置对象相关的配置信息。</li><li>uvm printfactory:打印已经在工厂注册的各个UVM类型。</li><li>uvm printtopology:打印UVM层次结构。</li><li>uvm setverbosity <uvm_report_verbosity level>[<uvm_component_path>]:设置UVM冗余度。</li></ul> 8.覆盖率相关命令 <p>coverage 记录功能:</p> <ul><li>coverage open <filename>[<logicalname>]:在GUI模式下打开某个UCDB文件,并为其指定某个逻辑名称。coverage open last.ucdb test</li><li>coverage attribute :用来显示或者设置与当前UCDB/Test/Object有关的属性(attribute) 。</li><li>coverage ranktest:根据在已合并的UCDB数据库中的各个test对于覆盖率的贡献进行排序。</li><li>coverage tag:将覆盖率数据库中的不同数据目标贴上标签(tag),继而跟验证计划(xml)中的覆盖目标进行映射。</li><li>coverage testnames:显示目前加载UCDB数据库中包含的各个test名。</li><li>coverage save:在仿真中将覆盖率数据保存为UCDB文件。</li></ul> <p>vcover 处理功能:</p> <ul><li> <p>vcover attribute:显示当前加载UCDB的属性。<br /> vcover attribute -ucdb [-name ...] <ucdb_file> | <coverstore>[ : test]</p> </li><li> <p>vcover merge:将多个通过"coverage save"命令创建的UCDB文件进行合并。<br /> vcover merge <merge_options> { [-out] <outfile><file1>[<file2> ...<filen>] }</p> </li><li> <p>vcover remove:将已合并进去的测试计划(testplan)相关数据和映射链接移除。<br /> vcover remove -tplan { [-out] <outfile>} <infile> [-[wprof=<filename>] [-proftick=<integer>] [-stats [=[+ | -]<feature>[,[+ | -]<mode>] ]</p> </li><li> <p>vcover report:从之前已经保存或者处理的UCDB数据中打印覆盖率信息或者过滤信息。<br /> vcover report <rpt_args> <ucdb__or_coverstore_test></p> <p>vcover report -html <input_ucdb> <rpt_args></p> </li><li> <p>vcover testnames:显示指定UCDB数据中的test集合。</p> <p>vcover testnames <file> <options></p> </li><li> <p>vcover history:显示目标UCDB文件的生成过程(命令记录)。</p> <p>vcover history < hist_options > <file></p> </li></ul> 9.常用仿真内建命令 <ul><li>do <filename> [<parameter_value>..….]:执行一个DO tcl脚本。</li><li>echo [<text_string>]:在Transcript窗口显示信息。</li><li>[environment | env] [-dataset | -nodataset] [<pathname> | -forward | -back] :显示或改变当前的数据/信号所在的路径,相关命令show。</li><li>[examine | exa]:显示一个或者多个目标变量/信号的数值。</li><li>exit [-f]:退出当前仿真。</li><li>quit [{-force | -f}| -sim]:强制退出,或者卸载当前仿真但不退出SIM,相关命令stop。</li><li>find:按照指定类型和名称找到信号/变量。</li><li>force {<object_name> <value>[[@]<time_info>][,[@]<time_info>]... [-freeze | -deposit | -drive][-cancel [@]<time_info>][-repeat [@]<time__info>]:如下<br /> force -freeze /top/p/addr 0 100,1 150 -r 200 -cancel 2000</li><li>noforce:去除在某些信号上已添加的force效用。</li><li>log:创建波形文件并且将对应数据保存到WLF格式文件中。</li><li>setenv <varname>[<value>]︰设置环境变量,相关命令: unsetenv,printenv。</li><li>simstats:显示与编译、仿真有关的数据信息。</li><li>report [files | where | simulator control | simulator state]:报告与仿真有关的文件、配置、控制和状态,相关命令: where</li><li>checkpoint <filename>:将仿真状态、波形等文件均保存下来,并且在当前仿真中可以利用restore命令回退。</li><li>when:在信号状态或者仿真时间满足条件时,可执行预定任务。</li><li>wlf2log | wlf2vcd:将WLF波形文件转换为log或者vcd格式,相关命令vcd2wlf。</li><li>vcd file | vcd add | vcd {on | off}:用来记录信号变化的vcd格式文件的相关命令。</li></ul></div> </div> <div style="clear: both;"></div> <div class="author-info fl"> <div><span class="gray">转载请注明:</span>文章转载自 <a href="https://www.mshxw.com/" class="blue">www.mshxw.com</a></div> <div><span class="gray">本文地址:</span><a href="https://www.mshxw.com/it/995946.html" class="blue">https://www.mshxw.com/it/995946.html</a></div> </div> <div class="prev fl"> <p> <a style='text-align:left;' class='center-block text-center glyphicon glyphicon-collapse-down' href="https://www.mshxw.com/it/995960.html">上一篇 Kotlin</a> </p> <p> <a style='text-align:left;' class='center-block text-center glyphicon glyphicon-collapse-down' href="https://www.mshxw.com/it/995950.html">下一篇 java 上机练习题</a> </p> </div> <div class="new_tag fl"> </div> </div> <div class="new_r fr" style="border-radius:10px;"> <div class="tui fl"> <h3>Java相关栏目本月热门文章</h3> <ul> <li><span>1</span><a href="https://www.mshxw.com/it/1041277.html" title="【Linux驱动开发】设备树详解(二)设备树语法详解">【Linux驱动开发】设备树详解(二)设备树语法详解</a></li> <li><span>2</span><a href="https://www.mshxw.com/it/1041273.html" title="别跟客户扯细节">别跟客户扯细节</a></li> <li><span>3</span><a href="https://www.mshxw.com/it/1041266.html" title="Springboot+RabbitMQ+ACK机制(生产方确认(全局、局部)、消费方确认)、知识盲区">Springboot+RabbitMQ+ACK机制(生产方确认(全局、局部)、消费方确认)、知识盲区</a></li> <li><span>4</span><a href="https://www.mshxw.com/it/1041261.html" title="【Java】对象处理流(ObjectOutputStream和ObjectInputStream)">【Java】对象处理流(ObjectOutputStream和ObjectInputStream)</a></li> <li><span>5</span><a href="https://www.mshxw.com/it/1041256.html" title="【分页】常见两种SpringBoot项目中分页技巧">【分页】常见两种SpringBoot项目中分页技巧</a></li> <li><span>6</span><a href="https://www.mshxw.com/it/1041299.html" title="一文带你搞懂OAuth2.0">一文带你搞懂OAuth2.0</a></li> <li><span>7</span><a href="https://www.mshxw.com/it/1041297.html" title="我要写整个中文互联网界最牛逼的JVM系列教程 | 「JVM与Java体系架构」章节:虚拟机与Java虚拟机介绍">我要写整个中文互联网界最牛逼的JVM系列教程 | 「JVM与Java体系架构」章节:虚拟机与Java虚拟机介绍</a></li> <li><span>8</span><a href="https://www.mshxw.com/it/1041296.html" title="【Spring Cloud】新闻头条微服务项目:FreeMarker模板引擎实现文章静态页面生成">【Spring Cloud】新闻头条微服务项目:FreeMarker模板引擎实现文章静态页面生成</a></li> <li><span>9</span><a href="https://www.mshxw.com/it/1041294.html" title="JavaSE - 封装、static成员和内部类">JavaSE - 封装、static成员和内部类</a></li> <li><span>10</span><a href="https://www.mshxw.com/it/1041291.html" title="树莓派mjpg-streamer实现监控及拍照功能调试">树莓派mjpg-streamer实现监控及拍照功能调试</a></li> <li><span>11</span><a href="https://www.mshxw.com/it/1041289.html" title="用c++写一个蓝屏代码">用c++写一个蓝屏代码</a></li> <li><span>12</span><a href="https://www.mshxw.com/it/1041285.html" title="从JDK8源码中看ArrayList和LinkedList的区别">从JDK8源码中看ArrayList和LinkedList的区别</a></li> <li><span>13</span><a href="https://www.mshxw.com/it/1041281.html" title="idea 1、报错java: 找不到符号 符号: 变量 log 2、转换成Maven项目">idea 1、报错java: 找不到符号 符号: 变量 log 2、转换成Maven项目</a></li> <li><span>14</span><a href="https://www.mshxw.com/it/1041282.html" title="在openwrt使用C语言增加ubus接口(包含C uci操作)">在openwrt使用C语言增加ubus接口(包含C uci操作)</a></li> <li><span>15</span><a href="https://www.mshxw.com/it/1041278.html" title="Spring 解决循环依赖">Spring 解决循环依赖</a></li> <li><span>16</span><a href="https://www.mshxw.com/it/1041275.html" title="SpringMVC——基于MVC架构的Spring框架">SpringMVC——基于MVC架构的Spring框架</a></li> <li><span>17</span><a href="https://www.mshxw.com/it/1041272.html" title="Andy‘s First Dictionary C++ STL set应用">Andy‘s First Dictionary C++ STL set应用</a></li> <li><span>18</span><a href="https://www.mshxw.com/it/1041271.html" title="动态内存管理">动态内存管理</a></li> <li><span>19</span><a href="https://www.mshxw.com/it/1041270.html" title="我的创作纪念日">我的创作纪念日</a></li> <li><span>20</span><a href="https://www.mshxw.com/it/1041269.html" title="Docker自定义镜像-Dockerfile">Docker自定义镜像-Dockerfile</a></li> </ul> </div> </div> </div> <!-- 公共尾部 --> <div class="link main"> <div class="link_tit"> <span class="on">热门相关搜索</span> </div> <div class="link_tab"> <div class="link_con"> <a href="http://www.mshxw.com/TAG_1/luyouqishezhi.html">路由器设置</a> <a href="http://www.mshxw.com/TAG_1/mutuopan.html">木托盘</a> <a href="http://www.mshxw.com/TAG_1/baotamianban.html">宝塔面板</a> <a href="http://www.mshxw.com/TAG_1/shaoerpython.html">儿童python教程</a> <a href="http://www.mshxw.com/TAG_1/xinqingdiluo.html">心情低落</a> <a href="http://www.mshxw.com/TAG_1/pengyouquan.html">朋友圈</a> <a href="http://www.mshxw.com/TAG_1/vim.html">vim</a> <a href="http://www.mshxw.com/TAG_1/shuangyiliuxueke.html">双一流学科</a> <a href="http://www.mshxw.com/TAG_1/zhuanshengben.html">专升本</a> <a href="http://www.mshxw.com/TAG_1/wodexuexiao.html">我的学校</a> <a href="http://www.mshxw.com/TAG_1/rijixuexiao.html">日记学校</a> <a href="http://www.mshxw.com/TAG_1/xidianpeixunxuexiao.html">西点培训学校</a> <a href="http://www.mshxw.com/TAG_1/qixiuxuexiao.html">汽修学校</a> <a href="http://www.mshxw.com/TAG_1/qingshu.html">情书</a> <a href="http://www.mshxw.com/TAG_1/huazhuangxuexiao.html">化妆学校</a> <a href="http://www.mshxw.com/TAG_1/tagouwuxiao.html">塔沟武校</a> <a href="http://www.mshxw.com/TAG_1/yixingmuban.html">异形模板</a> <a href="http://www.mshxw.com/TAG_1/xinandaxuepaiming.html">西南大学排名</a> <a href="http://www.mshxw.com/TAG_1/zuijingpirenshengduanju.html">最精辟人生短句</a> <a href="http://www.mshxw.com/TAG_1/6bujiaonizhuihuibeipian.html">6步教你追回被骗的钱</a> <a href="http://www.mshxw.com/TAG_1/nanchangdaxue985.html">南昌大学排名</a> <a href="http://www.mshxw.com/TAG_1/qingchaoshierdi.html">清朝十二帝</a> <a href="http://www.mshxw.com/TAG_1/beijingyinshuaxueyuanpaiming.html">北京印刷学院排名</a> <a href="http://www.mshxw.com/TAG_1/beifanggongyedaxuepaiming.html">北方工业大学排名</a> <a href="http://www.mshxw.com/TAG_1/beijinghangkonghangtiandaxuepaiming.html">北京航空航天大学排名</a> <a href="http://www.mshxw.com/TAG_1/shoudoujingjimaoyidaxuepaiming.html">首都经济贸易大学排名</a> <a href="http://www.mshxw.com/TAG_1/zhongguochuanmeidaxuepaiming.html">中国传媒大学排名</a> <a href="http://www.mshxw.com/TAG_1/shoudoushifandaxuepaiming.html">首都师范大学排名</a> <a href="http://www.mshxw.com/TAG_1/zhongguodezhidaxue(beijing)paiming.html">中国地质大学(北京)排名</a> <a href="http://www.mshxw.com/TAG_1/beijingxinxikejidaxuepaiming.html">北京信息科技大学排名</a> <a href="http://www.mshxw.com/TAG_1/zhongyangminzudaxuepaiming.html">中央民族大学排名</a> <a href="http://www.mshxw.com/TAG_1/beijingwudaoxueyuanpaiming.html">北京舞蹈学院排名</a> <a href="http://www.mshxw.com/TAG_1/beijingdianyingxueyuanpaiming.html">北京电影学院排名</a> <a href="http://www.mshxw.com/TAG_1/zhongguohuquxueyuanpaiming.html">中国戏曲学院排名</a> <a href="http://www.mshxw.com/TAG_1/hebeizhengfazhiyexueyuanpaiming.html">河北政法职业学院排名</a> <a href="http://www.mshxw.com/TAG_1/hebeijingmaodaxuepaiming.html">河北经贸大学排名</a> <a href="http://www.mshxw.com/TAG_1/tianjinzhongdeyingyongjishudaxuepaiming.html">天津中德应用技术大学排名</a> <a href="http://www.mshxw.com/TAG_1/tianjinyixuegaodengzhuankexuejiaopaiming.html">天津医学高等专科学校排名</a> <a href="http://www.mshxw.com/TAG_1/tianjinmeishuxueyuanpaiming.html">天津美术学院排名</a> <a href="http://www.mshxw.com/TAG_1/tianjinyinlexueyuanpaiming.html">天津音乐学院排名</a> <a href="http://www.mshxw.com/TAG_1/tianjingongyedaxuepaiming.html">天津工业大学排名</a> <a href="http://www.mshxw.com/TAG_1/beijinggongyedaxuegengdanxueyuanpaiming.html">北京工业大学耿丹学院排名</a> <a href="http://www.mshxw.com/TAG_1/beijingjingchaxueyuanpaiming.html">北京警察学院排名</a> <a href="http://www.mshxw.com/TAG_1/tianjinkejidaxuepaiming.html">天津科技大学排名</a> <a href="http://www.mshxw.com/TAG_1/beijingyoudiandaxue(hongfujiaoou)paiming.html">北京邮电大学(宏福校区)排名</a> <a href="http://www.mshxw.com/TAG_1/beijingwanglaozhiyexueyuanpaiming.html">北京网络职业学院排名</a> <a href="http://www.mshxw.com/TAG_1/beijingdaxueyixuebupaiming.html">北京大学医学部排名</a> <a href="http://www.mshxw.com/TAG_1/hebeikejidaxuepaiming.html">河北科技大学排名</a> <a href="http://www.mshxw.com/TAG_1/hebeidezhidaxuepaiming.html">河北地质大学排名</a> <a href="http://www.mshxw.com/TAG_1/hebeitiyoxueyuanpaiming.html">河北体育学院排名</a> </div> </div> </div> <div class="footer"> <div class="dl_con"> <div class="width1200"> <dl> <dt>学习工具</dt> <dd><a href="https://www.mshxw.com/tools/algebra/" title="代数计算器">代数计算器</a></dd> <dd><a href="https://www.mshxw.com/tools/trigonometry/" title="三角函数计算器">三角函数</a></dd> <dd><a href="https://www.mshxw.com/tools/analytical/" title="解析几何">解析几何</a></dd> <dd><a href="https://www.mshxw.com/tools/solidgeometry/" title="立体几何">立体几何</a></dd> </dl> <dl> <dt>知识解答</dt> <dd><a href="https://www.mshxw.com/ask/1033/" title="教育知识">教育知识</a></dd> <dd><a href="https://www.mshxw.com/ask/1180/" title="百科知识">百科知识</a></dd> <dd><a href="https://www.mshxw.com/ask/1155/" title="生活知识">生活知识</a></dd> <dd><a class="https://www.mshxw.com/ask/1199/" title="常识知识">常识知识</a></dd> </dl> <dl> <dt>写作必备</dt> <dd><a href="https://www.mshxw.com/zuowen/1128/" title="作文大全">作文大全</a></dd> <dd><a href="https://www.mshxw.com/zuowen/1130/" title="作文素材">作文素材</a></dd> <dd><a href="https://www.mshxw.com/zuowen/1132/" title="句子大全">句子大全</a></dd> <dd><a href="https://www.mshxw.com/zuowen/1154/" title="实用范文">实用范文</a></dd> </dl> <dl class="mr0"> <dt>关于我们</dt> <dd><a href="https://www.mshxw.com/about/index.html" title="关于我们" rel="nofollow">关于我们</a></dd> <dd><a href="https://www.mshxw.com/about/contact.html" title="联系我们" rel="nofollow">联系我们</a></dd> <dd><a href="https://www.mshxw.com/sitemap/" title="网站地图">网站地图</a></dd> </dl> <div class="dl_ewm"> <div class="wx"> <img src="https://www.mshxw.com/skin/sinaskin//kaotop/picture/gzh.jpg" alt="交流群"> <p>名师互学网交流群</p> </div> <div class="wx"><img src="https://www.mshxw.com/skin/sinaskin//kaotop/picture/weixin.jpg" alt="名师互学网客服"> <p>名师互学网客服</p> </div> </div> </div> </div> <div class="copyright"> <p>名师互学网 版权所有 (c)2021-2022 ICP备案号:<a href="https://beian.miit.gov.cn" rel="nofollow">晋ICP备2021003244-6号</a> </p> </div> </div> <!-- 手机端 --> <div class="m_foot_top"> <img src="https://www.mshxw.com/foot.gif" width="192" height="27" alt="我们一直用心在做"><br/> <a href="https://www.mshxw.com/about/index.html">关于我们</a> <a href="https://www.mshxw.com/archiver/">文章归档</a> <a href="https://www.mshxw.com/sitemap">网站地图</a> <a href="https://www.mshxw.com/about/contact.html">联系我们</a> <p>版权所有 (c)2021-2022 MSHXW.COM</p> <p>ICP备案号:<a href="https://beian.miit.gov.cn/" rel="nofollow">晋ICP备2021003244-6号</a></p> </div> <div class="to_top" style="display:none;"><img src="https://www.mshxw.com/skin/sinaskin//kaotop/picture/to_top.png"></div> <!--广告!--> <script type="text/javascript" src="https://www.mshxw.com/skin/sinaskin//kaotop/js/top.js"></script> <script src="https://www.mshxw.com/skin/sinaskin//kaotop/js/fixed.js" type="text/javascript"></script> <!--头条搜索!--> <script> (function(){ var el = document.createElement("script"); el.src = "https://lf1-cdn-tos.bytegoofy.com/goofy/ttzz/push.js?018f42187355ee18d1bfcee0487fc91a76ac6319beb05b7dc943033ed22c446d3d72cd14f8a76432df3935ab77ec54f830517b3cb210f7fd334f50ccb772134a"; el.id = "ttzz"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(el, s); })(window) </script> <!--头条搜索结束!--> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e05fec1c87ee5ca07f1ce57d093866c4"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </div> </div> <script type="text/javascript"> $(".alert_kf").click(function() { mantis.requestChat(); }); </script> <script type="text/javascript"> var mySwiper_weixin = new Swiper('.pc_swiper_weixin', { autoplay: 3000, //可选选项,自动滑动 loop: true, speed: 1000, pagination: '.swiper-pagination', paginationClickable: true, }) </script> <script type="text/javascript"> $(function() { $(window).scroll(function() { if ($(window).scrollTop() > 100) { $(".to_top").fadeIn(1000); } else { $(".to_top").fadeOut(1000); } }); $(".to_top").click(function() { if ($('html').scrollTop()) { $('html').animate({ scrollTop: 0 }, 300); return false; } $('body').animate({ scrollTop: 0 }, 300); return false; }); }); </script> </body> </html>