FPGA三人表决器问题总结
生活随笔
收集整理的這篇文章主要介紹了
FPGA三人表决器问题总结
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1.所有信號(hào)都顯示為高阻態(tài),是語(yǔ)法問(wèn)題造成的,一定要注意下面的ERROR信息.此次為$stop后面未加分號(hào)
`timescale 1 ps/ 1 ps module Project_Vote1_vlg_tst(); // constants // general purpose registers reg eachvec; // test vector input registers reg A; reg B; reg C; // wires wire L;// assign statements (if any) Project_Vote1 i1 ( // port map - connection between master ports and signals/registers .A(A),.B(B),.C(C),.L(L) ); initial begin // code that executes only once // insert code here --> begin $monitor($time,"Y value = %b\n",L); //激勵(lì)信號(hào)產(chǎn)生 A = 1'b0;B = 1'b0;C = 1'b0; //等待1000ps=1ns #1000;A = 1'b0;B = 1'b0;C = 1'b1; #1000;A = 1'b0;B = 1'b1;C = 1'b0; #1000;A = 1'b0;B = 1'b1;C = 1'b1; #1000;A = 1'b1;B = 1'b0;C = 1'b0; #1000;A = 1'b1;B = 1'b0;C = 1'b1; #1000;A = 1'b1;B = 1'b1;C = 1'b0; #1000;A = 1'b1;B = 1'b1;C = 1'b1;#1000;$stop;end endmodule總結(jié)
以上是生活随笔為你收集整理的FPGA三人表决器问题总结的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: “地图易”数据采集工具介绍——地图数据采
- 下一篇: VSAN配置手册