收藏 分享(赏)

西工大数电课设 电压测量.doc

上传人:dreamzhangning 文档编号:2725520 上传时间:2018-09-26 格式:DOC 页数:39 大小:450KB
下载 相关 举报
西工大数电课设 电压测量.doc_第1页
第1页 / 共39页
西工大数电课设 电压测量.doc_第2页
第2页 / 共39页
西工大数电课设 电压测量.doc_第3页
第3页 / 共39页
西工大数电课设 电压测量.doc_第4页
第4页 / 共39页
西工大数电课设 电压测量.doc_第5页
第5页 / 共39页
点击查看更多>>
资源描述

1、- 1 -西北工业大学课 程 设 计 报 告题 目: 电压测量 学 院: 班 级: 学生(学号): 学生(姓名): 学生(学号): 学生(姓名): 日期: 年 月 日- 2 -摘 要用 FPGA 开发板和 Verilog-HDL 语言实现了学号循环显示以及电压测量这两个功能。其中学号循环显示在开发板的数码管上实现,数码管上呈现出两人学号后四位循环。电压测量通过开发板上 LED 小灯闪烁,电压在 1v2v 时 LED1 闪烁;电压在 2v3v 时 LED2 闪烁;电压在 3v4v 时 LED3 闪烁;电压在 4v5v 时 LED4 闪烁。与此同时,VGA 屏幕显示准确电压测量值,误差1) beg

2、in clk_in=clk_in; end else if(cnt=fre) begin clk_in=clk_in;cnt100)/else Y=0;endreg valid_yr;always(posedge CLK_to_DAC)if(V_Cont = 10d32) valid_yr=1b1;else if(V_Cont=10d512) valid_yr=1b0;wire valid_y=valid_yr;reg valid_r;always(posedge CLK_to_DAC)if(H_Cont = 10d32)else if(H_Cont=10d512)wire valid = v

3、alid_r;wire10:0 x_dis;wire10:0 y_dis;assign x_dis=X;assign y_dis=Y;reg 31:0char_line09:0;reg 31:0char_line19:0;reg 31:0char_line29:0;reg 31:0char_line39:0;reg 31:0char_line49:0;reg 31:0char_line59:0;reg 31:0char_line69:0;reg 31:0char_line79:0;reg 31:0char_line89:0;reg 31:0char_line99:0;reg 31:0char_

4、line109:0;- 24 -reg 31:0char_line119:0;reg 31:0char_line129:0;reg 31:0char_line139:0;reg 31:0char_line149:0;reg 31:0char_line159:0;reg 31:0char_line169:0;reg 31:0char_line179:0;reg 31:0char_line189:0;reg 31:0char_line199:0;reg 31:0char_line209:0;reg 31:0char_line219:0;reg 31:0char_line229:0;reg 31:0

5、char_line239:0;reg 31:0char_line249:0;reg 31:0char_line259:0;reg 31:0char_line269:0;reg 31:0char_line279:0;reg 31:0char_line289:0;reg 31:0char_line299:0;reg 31:0char_line309:0;reg 31:0char_line319:0;wire 319:0line0; /第 1 行wire 319:0line1; /第 2 行wire 319:0line2; /第 3 行wire 319:0line3; /第 4 行wire 319:

6、0line4; /第 5 行wire 319:0line5; /第 6 行wire 319:0line6; /第 7 行wire 319:0line7; /第 8 行wire 319:0line8; /第 9 行wire 319:0line9; /第 10 行wire 319:0line10; /第 11 行wire 319:0line11; /第 12 行wire 319:0line12; /第 13 行wire 319:0line13; /第 14 行wire 319:0line14; /第 15 行wire 319:0line15; /第 16 行wire 319:0line16; /第

7、 17 行wire 319:0line17; /第 18 行wire 319:0line18; /第 19 行wire 319:0line19; /第 20 行wire 319:0line20; /第 21 行wire 319:0line21; /第 22 行wire 319:0line22; /第 23 行wire 319:0line23; /第 24 行- 25 -wire 319:0line24; /第 25 行wire 319:0line25; /第 26 行wire 319:0line26; /第 27 行wire 319:0line27; /第 28 行wire 319:0line

8、28; /第 29 行wire 319:0line29; /第 30 行wire 319:0line30; /第 31 行wire 319:0line31; /第 32 行alwaysbeginchar_line00=32h00000000;char_line10=32h00000000;char_line20=32h00000000;char_line30=32h00000000;char_line40=32h00000000;char_line50=32h0007E000;char_line60=32h003C3E00;char_line70=32h00F00700;char_line80

9、=32h03E003C0;char_line90=32h07C003E0;char_line100=32h078001E0;char_line110=32h0F8001F0;char_line120=32h0F8000F0;char_line130=32h1F0000F8;char_line140=32h1F0000F8;char_line150=32h1F0000F8;char_line160=32h1F0000F8;char_line170=32h1F0000F8;char_line180=32h1F0000F8;char_line190=32h1F0000F8;char_line200=

10、32h0F8000F0;char_line210=32h0F8001F0;char_line220=32h078001E0;char_line230=32h07C003E0;char_line240=32h03E003C0;char_line250=32h00F00F00;char_line260=32h003C3C00;char_line270=32h0007E000;char_line280=32h00000000;char_line290=32h00000000;char_line300=32h00000000;char_line310=32h00000000;/0- 26 -char_

11、line01 = 32h00000000;char_line11 = 32h00000000;char_line21 = 32h00000000;char_line31 = 32h00000000;char_line41 = 32h00000000;char_line51 = 32h0000C000;char_line61 = 32h0007C000;char_line71 = 32h01FFC00;char_line81 = 32h0003C000;char_line91 = 32h0003C000;char_line101 = 32h0003C000;char_line111 = 32h0

12、003C000;char_line121 = 32h0003C000;char_line131 = 32h0003C000;char_line141 = 32h0003C000;char_line151 = 32h0003C000;char_line161 = 32h0003C000;char_line171 = 32h0003C000;char_line181 = 32h0003C000;char_line191 = 32h0003C000;char_line201 = 32h0003C000;char_line211 = 32h0003C000;char_line221 = 32h0003

13、C000;char_line231 = 32h0003C000;char_line241 = 32h000FF000;char_line251 = 32h01FFFF80;char_line261 = 32h00000000;char_line271 = 32h00000000;char_line281 = 32h00000000;char_line291 = 32h00000000;char_line301 = 32h00000000;char_line311 = 32h00000000;/1char_line12=32h00000000;char_line12=32h00000000;ch

14、ar_line22=32h00000000;char_line32=32h00000000;char_line42=32h00000000;char_line52=32h000FF000;char_line62=32h00F03F00;char_line72=32h03800F80;char_line82=32h070007C0;char_line92=32h0F0003E0;char_line102=32h0F8003E0;- 27 -char_line112=32h0FC003E0;char_line122=32h078003C0;char_line132=32h000007C0;char

15、_line142=32h00000F80;char_line152=32h00001E00;char_line162=32h00003800;char_line172=32h0000E000;char_line182=32h0001C000;char_line192=32h00070000;char_line202=32h001C0000;char_line212=32h00700000;char_line222=32h01C00030;char_line232=32h03000030;char_line242=32h0E0000E0;char_line252=32h1FFFFFE0;char

16、_line262=32h1FFFFFE0;char_line272=32h00000000;char_line282=32h00000000;char_line292=32h00000000;char_line302=32h00000000;char_line312=32h00000000;/2char_line03=32h00000000;char_line13=32h00000000;char_line23=32h00000000;char_line33=32h00000000;char_line43=32h00000000;char_line53=32h000FE000;char_lin

17、e63=32h00F07C00;char_line73=32h03801F00;char_line83=32h07800F80;char_line93=32h07C007C0;char_line103=32h07C007C0;char_line113=32h000007C0;char_line123=32h00000780;char_line133=32h00000F00;char_line143=32h00003C00;char_line153=32h000FE000;char_line163=32h00007C00;char_line173=32h00000F80;char_line183

18、=32h000003C0;char_line193=32h000001E0;char_line203=32h000001F0;char_line213=32h000001F0;char_line223=32h07C001F0;- 28 -char_line233=32h0FC001E0;char_line243=32h0F8003E0;char_line253=32h07800780;char_line263=32h01F03E00;char_line273=32h001FE000;char_line283=32h00000000;char_line293=32h00000000;char_l

19、ine303=32h00000000;char_line313=32h00000000;/3char_line04=32h00000000;char_line14=32h00000000;char_line24=32h00000000;char_line34=32h00000000;char_line44=32h00000000;char_line54=32h00001E00;char_line64=32h00003E00;char_line74=32h00007E00;char_line84=32h0000DE00;char_line94=32h00039E00;char_line104=3

20、2h00061E00;char_line114=32h000C1E00;char_line124=32h00181E00;char_line134=32h00601E00;char_line144=32h00C01E00;char_line154=32h01801E00;char_line164=32h03001E00;char_line174=32h0C001E00;char_line184=32h18001E00;char_line194=32h3FFFFFFC;char_line204=32h00001E00;char_line214=32h00001E00;char_line224=3

21、2h00001E00;char_line234=32h00001E00;char_line244=32h00001E00;char_line254=32h000FFFF8;char_line264=32h00000000;char_line274=32h00000000;char_line284=32h00000000;char_line294=32h00000000;char_line304=32h00000000;char_line314=32h00000000;/char_line05=32h00000000;char_line15=32h00000000;- 29 -char_line

22、25=32h00000000;char_line35=32h00000000;char_line45=32h00000000;char_line55=32h00000000;char_line65=32h01FFFFE0;char_line75=32h01FFFFC0;char_line85=32h01800000;char_line95=32h01800000;char_line105=32h01800000;char_line115=32h01800000;char_line125=32h03000000;char_line135=32h03000000;char_line145=32h0

23、31FFE00;char_line155=32h03781F80;char_line165=32h03C007C0;char_line175=32h030003E0;char_line185=32h000001F0;char_line195=32h000001F0;char_line205=32h000001F0;char_line215=32h038001F0;char_line225=32h0FC001F0;char_line235=32h0FC003E0;char_line245=32h0F8003C0;char_line255=32h03800780;char_line265=32h0

24、0F03E00;char_line275=32h000FF000;char_line285=32h00000000;char_line295=32h00000000;char_line305=32h00000000;char_line315=32h00000000;/char_line06=32h00000000;char_line16=32h00000000;char_line26=32h00000000;char_line36=32h00000000;char_line46=32h00000000;char_line56=32h0001FC00;char_line66=32h001F078

25、0;char_line76=32h007003E0;char_line86=32h01E003E0;char_line96=32h03C001C0;char_line106=32h07800000;char_line116=32h0F800000;char_line126=32h0F000000;char_line136=32h0F01F800;char_line146=32h1F1FFF80;- 30 -char_line156=32h1F7803E0;char_line166=32h1FC001F0;char_line176=32h1F8000F0;char_line186=32h1F00

26、0078;char_line196=32h1F000078;char_line206=32h1F000078;char_line216=32h0F000078;char_line226=32h0F800078;char_line236=32h07C000F0;char_line246=32h03E000E0;char_line256=32h01F001C0;char_line266=32h007E0F00;char_line276=32h0007F000;char_line286=32h00000000;char_line296=32h00000000;char_line306=32h0000

27、0000;char_line316=32h00000000;/char_line07=32h00000000;char_line17=32h00000000;char_line27=32h00000000;char_line37=32h00000000;char_line47=32h00000000;char_line57=32h00000000;char_line67=32h07FFFFF0;char_line77=32h07FFFFE0;char_line87=32h070000C0;char_line97=32h06000180;char_line107=32h0C000300;char

28、_line117=32h00000600;char_line127=32h00001C00;char_line137=32h00003800;char_line147=32h00003000;char_line157=32h00007000;char_line167=32h0000E000;char_line177=32h0001C000;char_line187=32h0003C000;char_line197=32h00078000;char_line207=32h00078000;char_line217=32h000F8000;char_line227=32h000F8000;char_line237=32h001F8000;char_line247=32h001F8000;char_line257=32h001F8000;char_line267=32h001F8000;char_line277=32h000F0000;

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 大学课件

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报