欢迎来到天天文库
浏览记录
ID:28196955
大小:145.79 KB
页数:5页
时间:2018-12-07
《时序分析教你怎么看singaltap逻辑分析》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、inputinputinputoutputoutputmoduledyn_seg(elk,//clk_200hzreset_l,[13:0]data,reg[3:0]seg_s,//用于R选的寄存器reg[7:0]$cg"用于段选的寄存器II氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺氺//SIGNALS//f/2、氺車氺糸氺字氺尜氺承氺糸氺車;//定义叫个功能寄存器//CODE//J/^7*assigndataO=data/1000;最高位assigndata!=data%1000/100;次位assigndata2=data%100/10;倒数祐二位assigndata3=data%1();最低位always@(negedgercsct_lorposedgeelk)beginif(!reset_l)begincnt_show<=2’bO;endelsebegincnt_show<=cnt_show+2’b1;endendalways@3、(negedgercsct_lorposedgeelk)beginif(!reset_l)beginseg_s<=4’bO;endelsebegincase(cnt_show4、_1:0J)2砌:seg_s<=4'bOOOl;2’b()l:seg_s<=4'b()010;2rbl0:$cg_s<=4'bOlOO;2'bll:seg_s<=4'bl000;default:;endcaseendendalways@(*)begin00011011case(cnt_show[l:0])2'b00:hex<=dataO;2'b01:he5、x<=datal;2'blO:hex<=data2;2'b11:hex<=data3;default:hex<=4’bO;endcaseendalways@(negedgeresetjorposedgeelk)beginif(!resetj)beginseg<=8*b0;endelsebegincase(hex)4rh0:seg<=8'b11000000;4’hl:seg<=8’blllll001;4’h2:seg<=8'blOIOOlOO;4*h3:seg<=8'b10110000;4’h4:seg<=8*b10()11006、1;4’h5:seg<=8*610010010;4’h6:seg<=8'blOOOOOlO;4’h7:seg<=8*bl1111000;4’h8:seg<=8*b10000000;4’h9:seg<=8*b10()10000;4*hA:seg<=8^01110111;4’hB:seg<=8W1111100;4*hC:seg<=8(b00111001;4W:seg<=8rb()l()11110;4!hE:scg<=8^01111001;4*hF:seg<=8'b01110001;default:;endcaseendend///7、/幸氺氺氺*氺氺氺氺氺氺糸*氺氺氺^氺氺氺氺氺氺氺*////SUBMODULE////fillEndmodulegSignalTapHLogicAnal;Drk/shumaguan/nckey/par/top-top-[ype&itV«uProjectPrxessrgToolsjVrxtowje0专InstanceManager:、’P■超ReadytoacqjreinstanceStatusLEs:996Menory:1M224Smal:O舟autojig..Notnmng996cds180224bts0blocks(ixK8、AGChainConfig/aton:JTA6ready蝼Meckin:22/46Large:0/)22biod(sOUodsHardware:USB-aaster^]▼SetK»...Deva:®1:0>X(1O9、5)^4C£(IO10、6)(OxO2OF1OOO)tScanOw»SOFManager:(jE:/work/shima9uan^otey細/top.sof<59:201411/2121:01:20#0mebeTypeAbasVeName[•,边±..omb.5ldk.200n2.cntdyn.ieycort-7伽ad11、ynjeycortjlseg(11111Wblf"iS55Sldyn.segartJsegj(0100b::漏::•1326-1325•1324•1322•13222813•132'•132C•I31Sooooori•1317.1318•1315idndttumviiifl1
2、氺車氺糸氺字氺尜氺承氺糸氺車;//定义叫个功能寄存器//CODE//J/^7*assigndataO=data/1000;最高位assigndata!=data%1000/100;次位assigndata2=data%100/10;倒数祐二位assigndata3=data%1();最低位always@(negedgercsct_lorposedgeelk)beginif(!reset_l)begincnt_show<=2’bO;endelsebegincnt_show<=cnt_show+2’b1;endendalways@
3、(negedgercsct_lorposedgeelk)beginif(!reset_l)beginseg_s<=4’bO;endelsebegincase(cnt_show
4、_1:0J)2砌:seg_s<=4'bOOOl;2’b()l:seg_s<=4'b()010;2rbl0:$cg_s<=4'bOlOO;2'bll:seg_s<=4'bl000;default:;endcaseendendalways@(*)begin00011011case(cnt_show[l:0])2'b00:hex<=dataO;2'b01:he
5、x<=datal;2'blO:hex<=data2;2'b11:hex<=data3;default:hex<=4’bO;endcaseendalways@(negedgeresetjorposedgeelk)beginif(!resetj)beginseg<=8*b0;endelsebegincase(hex)4rh0:seg<=8'b11000000;4’hl:seg<=8’blllll001;4’h2:seg<=8'blOIOOlOO;4*h3:seg<=8'b10110000;4’h4:seg<=8*b10()1100
6、1;4’h5:seg<=8*610010010;4’h6:seg<=8'blOOOOOlO;4’h7:seg<=8*bl1111000;4’h8:seg<=8*b10000000;4’h9:seg<=8*b10()10000;4*hA:seg<=8^01110111;4’hB:seg<=8W1111100;4*hC:seg<=8(b00111001;4W:seg<=8rb()l()11110;4!hE:scg<=8^01111001;4*hF:seg<=8'b01110001;default:;endcaseendend///
7、/幸氺氺氺*氺氺氺氺氺氺糸*氺氺氺^氺氺氺氺氺氺氺*////SUBMODULE////fillEndmodulegSignalTapHLogicAnal;Drk/shumaguan/nckey/par/top-top-[ype&itV«uProjectPrxessrgToolsjVrxtowje0专InstanceManager:、’P■超ReadytoacqjreinstanceStatusLEs:996Menory:1M224Smal:O舟autojig..Notnmng996cds180224bts0blocks(ixK
8、AGChainConfig/aton:JTA6ready蝼Meckin:22/46Large:0/)22biod(sOUodsHardware:USB-aaster^]▼SetK»...Deva:®1:0>X(1O
9、5)^4C£(IO
10、6)(OxO2OF1OOO)tScanOw»SOFManager:(jE:/work/shima9uan^otey細/top.sof<59:201411/2121:01:20#0mebeTypeAbasVeName[•,边±..omb.5ldk.200n2.cntdyn.ieycort-7伽ad
11、ynjeycortjlseg(11111Wblf"iS55Sldyn.segartJsegj(0100b::漏::•1326-1325•1324•1322•13222813•132'•132C•I31Sooooori•1317.1318•1315idndttumviiifl1
此文档下载收益归作者所有