数电课设实验报告_第1页
数电课设实验报告_第2页
数电课设实验报告_第3页
数电课设实验报告_第4页
数电课设实验报告_第5页
已阅读5页,还剩52页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

题目:数字钟课程名称:数字电路课程设计学院(系):电信学部专业:电气工程及其自动化班级:电气1603班肖也肖也学生姓名:学号:201692279完成日期:2018.12.26成绩:2018年12月26 0数字电路实验室安全操作规范在实验室指定的位置进行实验。实验前,应检查要使用的实验设备是否在正确的位置,注意人身安全,防止使用过程中造成事故。使用设备前,检查是否有漏电等危险情况。如果设备不正常,要关闭电源,请指导教师更换。禁止学生未经允许移动和更换以及检修设备。实验室内的仪器设备要安全接地,注意仪器设备的通风和防尘,远离高温以及强辐射区域。仪器设备要按照使用说明书操作,严禁用锐器和硬物损坏仪器设备、电源线和信号线等,严禁在实验室刻画和做标记等行为。应正确选择和使用设备,严禁违章操作,避免人身事故和仪器损坏,造成损失的要赔偿。一般情况下,禁止学生携带个人的电子元器件和设备进入实验室。学生自制的电路必须经过指导教师批准才能接到实验设备上。严禁学生携带实验室的设备和元器件等到实验室外。借用设备时要请示教师,登记之后再带离,并在规定的时间内归还,归还时要检查是否正常。实验过程中,禁止带电操作,检查电路时要关闭电源。如果发现有异常发热,焦糊味和异常声响等,应首先关闭电源,并请指导教师解决。如遇到地震、火灾等灾害要按照实验室安全预案进行处理。实验结束后,要整理实验设备到正确的位置,带好个人物品,清扫卫生后,经过指导教师允许才能离开。离开时,各个实验设备要关闭电源,计算机和投影仪要按照正确的方法关机,不得强行关闭。电脑中不能存放与教学无关的资料,不能玩游戏和观看电影。进入实验室时,不能携带食品和饮料。离开时,要把垃圾带走。签名:日期:题目:数字钟1设计要求能够显示当前时间,分别用6个数码管显示小时、分钟、秒钟的时间,秒针的计数频率为1Hz;具有手动校时、校分、校秒的功能,调整的形式为通过按键进行累加;在整点进行提示,通过六位流水灯来实现,具体方式为2在整点进行提示,通过六位流水灯来实现,具体方式为2秒1个轮回,偶数位和奇数位各亮1秒,循环闪烁直到整点过1分结束。0(设0(设定的形式同样为通过按键累加),并且在设定的时间能够进行提示, 提示由1位LED闪烁实现,闹钟到点后持续一分钟;具有闹铃音乐功能,由蜂鸣器接到开发板 GP10引脚输出实现,闹钟到点后自动循1分钟;环播放事先编制好的特定乐谱的音乐,持续时间和闹钟到点提示灯一样为设计模式选择计数器,有计时、校时(手动校时和闹钟定时)及整点报时三个模式,1分钟;2设计分析及系统方案设计4个输入:27Mhz时钟,三个按键;14个输出:6个数码管显示输出,2个当前校时提示灯(分别提示当前为校正数字钟和设定闹铃时间),3个当前校时位提示灯(时、分、秒),1个闹钟到点提示灯,1个整点报时6位流水灯,1个蜂鸣器输出引脚;通过对50MHZ的elk进行分频得到1Hz时钟信号作为基本信号,三个按键分别控制模式,调时位,累加。厂珂1--■:1,■-1厂珂1--■:1,■-1■■■-■ 'B;■_■1_!'i1 石t提示按键系统框图提示累加3系统以及模块硬件电路设计3系统以及模块硬件电路设计硬件电路及其引脚说明如下:图2图2按键部分电路£ignalNameF卩GA卩inNo.DescriptionKEY[0]PIN_G26Pushbutton[0]K&Y[1]PIN_N23Pushbulton[1]KEVp]PIN_P23Pushbuttonp]KEY[3]PIN_W26Pushbutton[3]•半:i:'iKgE1

d辰■■*■■b■•半:i:'iKgE1

d辰■■*■■b■斗■Ph—IJI F'J1-nzJpU——■—萨;T生--—Z_! L Lt_-_J4 L_l——肚1.m「i-旧:-——kMt一. 二[.JJ图3数码管部分电路SignalNameFPGAPinNIo.Description

SignalNameFPGAPinNIo.DescriptionHEX2[0]PIN_AB23SeverSegmentDigit2[0]HEX2[1]PIN_V22強nSegmentDigit2[1]HEX2[2]PIN_AC25SevenSegmentDigit2[2]HEX2[3]PIN_AC26SevenSegmentDigit2[3]HEX2[4]PIN_AB26SevenSegmentDigit2[4]HEX2[5]PIN_AB25SevenSegmentDigit2[5]HEX2[6]PIN_Y24SeverSegmentDigit2[6]HEX3[0]|PIN_Y23SevenSegmentDigit3[0]HEX3[1]|PINLAA25SevenSegmentDigit3[1]HEX3I2]PIN_AA26SevenSegmentDigit3[2]HEX3P]PIN_Y26SevenSegmentDigit3[3]HEX3[4]PIN_Y25SevenSegmentDigit3[4]HEX5[5]PIN_U22SevenSegmentDigit3[5]HEX3⑹PIN-训2斗SevenSegmentDigit3[6]HEX4[0]PIN_U9SevenSegm宕mtDigit4[0]HEX4[11PIN_U1SevenSegmentDigit4[1]HEX4P1PIN_U2SevenSegmentDigit4[2)HEX4[31PIN_T4SevenSegmentDigit4[3]HEX4[4]PIN_R7SevenSegmentDigit4[4]HEX4[51PIN_R6SevenSegmentDigit4[5]PIN_T3SevenSegmentDigit4[6)HEX5L01PIN_T2SevenSegmenlDigit5[0]HEX5[1)PIN_P6SevenSegmentDigit5[1]HEX5[2)PIN_P7SevenSegmentDigit5{2]HEX5(3)PIN_T9SevenSegmentDigit5(3]HEX5[4lPIN_R5SevenSegmentDigit5[4]HEX5[5]PIN_R4SevenSegmentDigit5[5]HEX5I6)P1IN_R3SevenSegmentDigit5(6]

HEX6[1]PIN-P斗SevenSegmentDigit6[1]HEX6[2]PIN戶SevenSegmentDigit6[2]HEX6⑶PI«IN_M2SevenSegmentDigit6⑶HEX6[4]PIN_M3SevenSegmenlDigit6(4]HEX^]PlllN_M5SevenSegmentDigit6[5]HEXE⑹PIIIN_M4SevenSegmentDigit6⑹HEX7[01PINLL3SevenSegmenlDigit7[0]HEX7[11PiNLL2SevenSegmenlDigit7[1]HEX7[2]PIN_L9SevenSegmentDigit7[2]HEX7[3]PINI_L6SevenSegmentDigit7[3]HEX7[41PINI_L7SevenSegmenlDigit7[4]HEX7[51PIN_P9SevenSegmentDigit7[5]HEX7[e]PIN_N9SevenSegmenlDigit7[6],:T-…_L卜丄_7暮*-r―严i«n«.三 J.*严..丄3I[IJ11~ILNfroii<.IMil-■竺,:T-…_L卜丄_7暮*-r―严i«n«.三 J.*严..丄3I[IJ11~ILNfroii<.IMil-■竺>—fTH匚LL:M■A.I卜「士4_耻二t^.q■■II>2lHil"'—uI Q- . ' i」r! W,id『”'"HU•I ■MI r> 4 -Itn III.i--1LLL^Lji><Ti'r.——J1■ninciC 号 ]L-一I41'(r?71: fTTn■Pf-ri-图4LED部分电路LEDG[8]数字钟校时提示灯LEDG[8]数字钟校时提示灯SignalNameFPGAPinNo.DescriptionLEDR[O]PIN_AE23LEDRed[0]LEDR[1]PIN_AF23LEDRed[1]LED民[2]PIN_AB21LEDRed[2]LEDR[3]PIN_AC22LEDREd⑶LEDR[4]PIN_AD22LEDRed⑷LEDR[5]PINI_AD23LEDRed⑸整点报时6位流水灯LEDG⑹PJIIN_M20'LEDGreen[6]闹钟到时提示灯LEDR115]PIN_AE13LEDFt帆[15]LEDR[16]PIN_AE12LEDRecl[16]LEDR[17]PIN_AD12LEDRed[仃]由下到上依次为时分秒当前校时位提示灯LEDG[7)pjM_YiaLEDGreen(7]LEDG[8]PIN_Y12LEDGreer(e]闹钟定时提示灯LEDG[7]:表3实验中用到的LED接口定义nrW:Af.1;、rM:'

fLfri,蠹L珀:pAl-p.%;nrW:Af.1;、rM:'

fLfri,蠹L珀:pAl-p.%;、L■jtJ:i,步.A:Ir^TT(protectionresistorsanddiodes

notshownforotherports)图5GPIO接口部分电路SignalNameFPGAPinNo.DescfIpUonGPIO_0[0]PIN_D25GPIOConnection0[0]实验中用到的GP10引脚(蜂鸣器外设接口)定义4系统的VerilogHDL设计moduleclock(clk,add,set_mod_key,set_xx_key,hour1_show,hour2_show,min1_show,min2_show,sec1_show,sec2_show,set_time_LED,set_clock_LED,set_hour_LED,set_sec_LED,set_min_LED,alarm_light,hourly_light,speaker);inputclk,set_mod_key,set_xx_key,add;//输入为50MHZ开发板时钟和三个按键:input运行模式、调时位、累加output[6:0]hour1_show,hour2_show,min1_show,min2_show,sec1_show,sec2_show;//6 个数码管显示输出outputset_time_LED,set_clock_LED;// 数字钟校时提示灯和闹钟定时提示灯outputoutputset_hour_LED,set_sec_LED,set_min_LED;//当前校时位提示灯(时、分、output秒)outputalarm_light;// outputalarm_light;// 闹钟到时提示灯output[5:0]hourly_light;// 整点报时六位流水灯output[5:0]outputspeaker;//扬声器GPIO引脚对应的音频输出端状态寄存器outputreg[6:0]hour1_show,hour2_show,min1_show,min2_show,sec1_show,sec2_show;//时分秒显示数码管reg[3:0]hour1,hour2,min1,min2,sec1,sec2;//存储正常计时的当前时间reg[3:0]hour1,hour2,min1,min2,sec1,sec2;//存储正常计时的当前时间reg[3:0]set_hour1,set_hour2,set_min1,set_min2,set_sec1,set_sec2;reg[3:0]//存储校时功能的目标校正时间reg[3:0]shour1,shour2,smin1,smin2,ssec1,ssec2;reg[3:0]//存储数码管应显示的对应十进制数的寄存器reg[3:0]ahour1,ahour2,amin1,amin2,asec1,asec2;//存储闹钟定时regset_counter;reg[3:0]ahour1,ahour2,amin1,amin2,asec1,asec2;//存储闹钟定时regset_counter;regregclk_sec,clk_2s;//秒脉冲(1HZ的时钟脉冲)reg[24:0]counter1;endendreg[24:0]counter2;regset_time,set_clock;// 分别为校时和闹钟定时的启动开关regset_hour,set_sec,set_min;// 校时和闹钟定时设置时分秒的标志寄存器regset_time_LED,set_clock_LED;// 校时模式提示灯和闹钟定时模式提示灯regset_hour_LED,set_sec_LED,set_min_LED;// 当前校时、闹钟定时时分秒位提示灯regalarm_light;reg[5:0]hourly_light;regset_ok;//标志校时或者闹钟定时已完成regclock_sys;//当前计时模式标志寄存器regspeaker;regclk_6mhz;//由50MHZ系统时钟八分频得到(实际为6.25MHZ),用于产生各种音阶频率的基准频率regclk_8hz;//用于控制音长(节拍)的时钟频率,所有节拍均为1/4拍的整数倍reg[14:0]divider,origin;//divider为分频系数,origin为各个音调实现分频的加载预置数regcarry;reg[7:0]counter;/*乐曲从开始处经过的1/4节拍(1/8秒)数计数器*/reg[3:0]high,med,low;/* 高中低八度音阶*/reg[2:0]count8;//50MHZ 八分频作为基频reg[18:0]parameterdiv_para1=25000000;parameternum_quarter_note=143;//闹钟音乐四分音符数目/**************50mhz化为reg[18:0]parameterdiv_para1=25000000;parameternum_quarter_note=143;//闹钟音乐四分音符数目/**************50mhz化为ihz**************/count19;//6.25MHZ时钟分频到8HZ所需要的计数器always@(posedgeelk)beginendcounter1<=eounter1+1if(eounter1>=div_paral)begincounter1<=0;clk_sec=!clk_sec;endalways@(posedgeclk_sec)beginclk_2s=~clk_2s;'b1;//为闹钟到点提示灯和整点报时流水灯设置的0.5HZ时钟信号,由数字钟秒脉冲二分频得/*模式1:正常计时*/always@(posedgeclk_sec)beginif(set_ok==1&&set_time==1)beginsec1<=set_sec1;sec2<=set_sec2;min1<=set_min1;min2<=set_min2;hour1<=set_hour1;hour2<=set_hour2;endif(!set_time)//24小时计时if(sec2==4'h9)beginsec2<=4'h0;if(sec1==4'h5)beginsec1<=4'h0;endendendendif(min2==4'h9)beginmin2<=4'h0;if(min1==4'h5)beginmin1<=4'h0;if(hour2==4'h3&&hour1==4'h2)beginhour2<=4'h0;hour1<=4'h0;endelseif(hour2==4'h9)beginhour2<=4'h0;if(hour1==4'h5)hour1<=4'h0;elsehour1<=hour1+1'b1;endelsehour2<=hour2+1'b1;endendendendelsemin1<=min1+1'b1;elsemin2<=min2+1'b1;endelsesec1<=sec1+1'b1;endelsesec2<=sec2+1'b1;end/***************模式1计时、模式2校时、模式3闹钟定时时间显示*************/always@(posedgeclk)beginif(set_time==1)beginssec1<=set_sec1;ssec2<=set_sec2;smin1<=set_min1;smin2<=set_min2;endendendendendendendendshour1<=set_hour1;shour2<=set_hour2;elseif(set_clock==1)beginssec1<=asec1;ssec2<=asec2;smin1<=amin1;smin2<=amin2;shour1<=ahour1;shour2<=ahour2;endelsebeginssec1<=sec1;ssec2<=sec2;smin1<=min1;smin2<=min2;shour1<=hour1;shour2<=hour2;case(shour1)4'bOOOO hour1_show<=7'b1000000;4'bOOOO hour1_show<=7'b1000000;4'bOOOO hour1_show<=7'b1000000;4'bOOOO hour1_show<=7'b1000000;4'bOOO1hour1_show<=7'b1111001;4'bOO1O:hour1_show<=7'b0100100;endcasecase(shour2)4'bOOOOhour2_show<=7'b1000000;4'bOOO1hour2_show<=7'b1111001;4'bOO1O:hour2_show<=7'b0100100;4'bOO11hour2_show<=7'b0110000;4'bO1OO:hour2_show<=7'b0011001;4'bO1O1hour2_show<=7'b0010010;4'bO11Ohour2_show<=7'b0000010;4'bO111hour2_show<=7'b1111000;4'b1000:hour2_show<=7'b0000000;4'b1001hour2_show<=7'b0010000;endcasecase(smin1)4'bOOOOmin1_show<=7'b1000000;4'bOOO1min1_show<=7'b1111001;4'bOO1O:min1_show<=7'b0100100;4'bOO11min1_show<=7'b0110000;4'bO1OOmin1_show<=7'b0011001;4'bO1O1 min1_show<=7'b0010010;4'bO1O1 min1_show<=7'b0010010;4'bO1O1 min1_show<=7'b0010010;4'bO1O1 min1_show<=7'b0010010;4'bO11Omin1_show<=7'b0000010;endcasecase(smin2)4'b0000min2_show<=7'b1000000;4'b0001min2_show<=7'b1111001;4'b0010min2_show<=7'b0100100;4'b0011min2_show<=7'b0110000;4'b0100:min2_show<=7'b0011001;4'b0101min2_show<=7'b0010010;4'b0110min2_show<=7'b0000010;4'b0111min2_show<=7'b1111000;4'b1000min2_show<=7'b0000000;4'b1001min2_show<=7'b0010000;endcasecase(ssec1)4'b0000sec1_show<=7'b1000000;4'b0001sec1_show<=7'b1111001;4'b0010:sec1_show<=7'b0100100;4'b0011sec1_show<=7'b0110000;4'b0100:sec1_show<=7'b0011001;4'b0101sec1_show<=7'b0010010;4'bO11O sec1_show<=7'b0000010;4'bO11O sec1_show<=7'b0000010;beginbegin4'bO11O sec1_show<=7'b0000010;4'bO11O sec1_show<=7'b0000010;beginbeginendcasecase(ssec2)4'b0000sec2_show<=7'b1000000;4'b0001sec2_show<=7'b1111001;4'b0010sec2_show<=7'b0100100;4'b0011sec2_show<=7'b0110000;end4'b01004'b01014'b01104'b01114'b10004'b1001endcase/***************sec2_show<=7'b0011001;sec2_show<=7'b0010010;sec2_show<=7'b0000010;sec2_show<=7'b1111000;sec2_show<=7'b0000000;sec2_show<=7'b0010000;整时提醒************/always@(posedgeclk)if(clock_sys==1)beginbeginbeginbeginif(min1==5&&min2==9&&sec1==5&&(sec2==0||sec2==2||sec2==4||sec2==6||sec2==8))hourly_light<=6'b010101;//59分50/52/54/56/58秒LEDR[0][2][4]亮elseif(min1==0&&min2==0&&sec1==0&&sec2==0)hourly_light<=6'b010101;//整点时同上elseif(min1==5&&min2==9&&sec1==5&&(sec2==1||sec2==3||sec2==5||sec2==7||sec2==9))hourly_light<=6'b101010;//59分51/53/55/57/59秒LEDR[1][3][5]亮endelsehourly_light<=6'b000000;/******************** 调时位置按键检狈寸*************/always@(posedgeset_xx_key)beginif(set_time==1||set_clock==1)if(set_hour==1)// 调时完下一步调秒,调秒完下一步调分,调分完下一步调时,依次循环beginset_hour<=0;set_hour<=0;beginset_hour<=1;beginset_hour<=1;set_hour<=0;set_hour<=0;beginset_hour<=1;beginset_hour<=1;endset_min<=0;set_sec<=1;set_ok<=1;set_hour_LED<=0;set_min_LED<=0;set_sec_LED<=1;elseif(set_sec==1)beginset_hour<=0;set_min<=1;set_sec<=0;set_ok<=1;set_hour_LED<=0;set_min_LED<=1;set_sec_LED<=0;endelseif(set_min==1)set_min<=0;set_sec<=0;set_sec<=0;beginset_min<=0;beginset_min<=0;set_sec<=0;set_sec<=0;beginset_min<=0;beginset_min<=0;endendset_ok<=1;set_hour_LED<=1;set_min_LED<=0;set_sec_LED<=0;else//如果调时位置按键的几个寄存器均为 0,那么下一步默认按调秒处理,只用于刚上电启动第一次校时或闹钟定时的情况beginendset_hour<=0;set_min<=0;set_sec<=1;set_ok<=1;set_hour_LED<=0;set_min_LED<=0;set_sec_LED<=1;if(set_time==0&&set_clock==0)set_hour<=0;set_sec<=0;set_sec<=0;set_time_LED<=0;set_clock_LED<=1;endset_time_LED<=0;set_clock_LED<=1;endset_sec<=0;set_sec<=0;set_time_LED<=0;set_clock_LED<=1;endset_time_LED<=0;set_clock_LED<=1;endendendset_ok<=0;set_hour_LED<=0;set_sec_LED<=0;set_min_LED<=0;/*******************调时模式按键检测**************/always@(posedgeset_mod_key)set_mod_key键及切换//在计时、校时和闹钟定时三个模式之间依次循环切换,每次按下set_mod_key键及切换到下一模式并且相应的提示灯亮beginif(set_time==1)beginset_time<=0;set_clock<=1;clock_sys<=0;beginbeginbeginbeginelseif(set_clock==1)beginset_time<=0;set_clock<=0;set_time_LED<=0;set_clock_LED<=0;clock_sys<=1;//clock_sys 标志当前数字钟正处在正常计时模式endelsebeginset_time<=1;set_clock<=0;clock_sys<=0;set_time_LED<=1;set_clock_LED<=0;endend/***************add狈寸/***************add狈寸*****************/always@(posedgeadd)set_sec2<=set_sec2+1'b1;endendset_sec2<=set_sec2+1'b1;endendset_sec2<=set_sec2+1'b1;endendset_sec2<=set_sec2+1'b1;endendif(set_time==1)beginif(set_sec==1)beginif(set_sec2==9)beginif(set_sec1==5)beginset_sec1<=0;set_sec2<=0;endelsebeginset_sec1<=set_sec1+1'b1;set_sec2<=0;endendelsebeginelseif(set_min==1)elseif(set_min==1)beginbeginelseif(set_min==1)elseif(set_min==1)beginbeginbeginif(set_min2==9)beginif(set_min1==5)beginset_min1<=0;set_min2<=0;endelsebeginset_min1<=set_min1+1'b1;set_min2<=0;endendelseset_min2<=set_min2+1'b1;endelseif(set_hour==1)if(set_hour1!=2)set_hour1<=set_hour1+1'b1;if(set_hour1!=2)set_hour1<=set_hour1+1'b1;set_hour2<=set_hour2+1'b1;endendset_hour2<=set_hour2+1'b1;endendif(set_hour1!=2)set_hour1<=set_hour1+1'b1;if(set_hour1!=2)set_hour1<=set_hour1+1'b1;set_hour2<=set_hour2+1'b1;endendset_hour2<=set_hour2+1'b1;endendbeginif(set_hour2==9)beginset_hour2<=0;endelseset_hour2<=set_hour2+1'b1;endelsebeginif(set_hour2==3)beginset_hour1<=0;set_hour2<=0;endelseif(set_hour2<3)endelseif(set_clock==1)beginif(set_sec==1)beginasec2<=0;asec1<=0;endelseif(set_min==1)beginif(amin2==9)beginif(amin1==5)beginamin1<=0;amin2<=0;endelsebeginamin1<=amin1+1'b1;amin2<=0;amin2<=amin2+1'b1;amin2<=amin2+1'b1;elseelseamin2<=amin2+1'b1;amin2<=amin2+1'b1;elseelseendendelseendelseif(set_hour==1)beginif(ahour1!=2)beginif(ahour2==9)beginahour1<=ahour1+1'b1;ahour2<=0;endelseahour2<=ahour2+1'b1;endbeginif(ahour2==3)beginahour2<=ahour2+1'b1;ahour2<=ahour2+1'b1;elseendelseendahour2<=ahour2+1'b1;ahour2<=ahour2+1'b1;elseendelseendendendendend/******************endahour1<=0;ahour2<=0;elseif(ahour2<3)闹钟到点提示灯*****************always@(posedgeclk)beginif(clock_sys==1)if(clk_2s==1&&ahour1==hour1&&ahour2==hour2&&amin1==min1&&amin2==min2)alarm_light<=1;alarm_light<=0;/***************** /***************** 闹钟音乐**********************/elseendelseend/***************** /***************** 闹钟音乐**********************/elseendelseendalways@(posedgeelk)//从50MHZ分频得到6.25MHZ时钟always@(posedgebeginif(eount8==7)begin count8<=0;clk_6mhz=1;endelsebegin count8<=count8+1'b1;clk_6mhz=0;endendalways@(posedgeclk_6mhz)//从6.25MHZ分频得到8HZ时钟always@(posedgebeginif(count19==390625)begin clk_8hz=~clk_8hz;count19=0;endelsecount19=count19+1'b1;endalways@(posedgeclk_6mhz)//always@(posedgeclk_6mhz)//通过置数,改变分频比beginbeginbeginbeginbeginif(divider==32767)//2^15-1carry<=1;divider<=origin;enddivider<=divider+1'b1;carry<=0;endendalways@(posedgeclk_8hz)// endalways@(posedgeclk_8hz)// 闹钟到时,循环播放一分钟闹铃音乐endalways@(posedgeclk_8hz)// endalways@(posedgeclk_8hz)// 闹钟到时,循环播放一分钟闹铃音乐always@(posedgecarry)//2分频得到方波信号,得到每个四分音符1/8秒内的特定频率的声音振动begin speaker<=~speaker;endalways@(posedgeclk_8hz)begincase({high,med,low})//根据不同的音符,预置分频比'h001:origin<=8876;'h002:origin<=11487;'h003:origin<=13805;'h004:origin<=14869;'h005:origin<=16823;'h006:origin<=18562;'h007:origin<=20113;'h010:origin<=20824;'h020:origin<=22125;'h030:origin<=23287;'h040:origin<=23832;'h050:origin<=24795;'h060:origin<=25665;'h070:origin<=26440;'h100:origin<=26795;'h200:origin<=27446;'h300:origin<=28030;'h400:origin<=28293;'h500:origin<=28781;'h600:origin<=29216;'h700:origin<=29603;'h000:origin<=32767;//endcase休止符20:{high,med,low}<='h020; 21:{high,med,low}<='h020;20:{high,med,low}<='h020; 21:{high,med,low}<='h020;20:{high,med,low}<='h020; 21:{high,med,low}<='h020;20:{high,med,low}<='h020; 21:{high,med,low}<='h020;if(clock_sys==1)beginif(ahour1==hour1&&ahour2==hour2&&amin1==min1&&amin2==min2)beginif(counter==num_quarter_note)counter<=0;elsecounter<=counter+1'b1;case(counter)// 乐曲片段乐谱0:{high,med,low}<='h000;1:{high,med,low}<-h0002:{high,med,low}<='h000;3:{high,med,low}<='h000;4:{high,med,low}<='h000;5:{high,med,low}<='h000;6:{high,med,low}<='h000;7:{high,med,low}<='h000;8:{high,med,low}<='h000;9:{high,med,low}<='h000;10:{high,med,low}<='h010;11:{high,med,low}<='h010;12:{high,med,low}<='h010;13:{high,med,low}<='h010;14:{high,med,low}<='h020;15:{high,med,low}<='h020;16:{high,med,low}<='h030;17:{high,med,low}<='h030;18:{high,med,low}<='h030;19:{high,med,low}<='h030;22:{high,med,low}<='h030;23:{high,med,low}<='h030;24:{high,med,low}<='h000; 25:{high,med,low}<='h000;24:{high,med,low}<='h000; 25:{high,med,low}<='h000;66:{high,med,low}<='h030; 67:{high,med,low}<='h030;66:{high,med,low}<='h030; 67:{high,med,low}<='h030;24:{high,med,low}<='h000; 25:{high,med,low}<='h000;24:{high,med,low}<='h000; 25:{high,med,low}<='h000;66:{high,med,low}<='h030; 67:{high,med,low}<='h030;66:{high,med,low}<='h030; 67:{high,med,low}<='h030;26:{high,med,low}<='h030;27:{high,med,low}<='h030;28:{high,med,low}<='h020;29:{high,med,low}<='h020;30:{high,med,low}<='h010;31:{high,med,low}<='h010;32:{high,med,low}<='h050;33:{high,med,low}<='h050;34:{high,med,low}<='h050;35:{high,med,low}<='h050;36:{high,med,low}<='h030;37:{high,med,low}<='h030;38:{high,med,low}<='h050;39:{high,med,low}<='h050;40:{high,med,low}<='h000;41:{high,med,low}<='h000;42:{high,med,low}<='h050;43:{high,med,low}<='h050;44:{high,med,low}<='h060;45:{high,med,low}<='h060;46:{high,med,low}<='h070;47:{high,med,low}<='h070;48:{high,med,low}<='h100;49:{high,med,low}<='h100;50:{high,med,low}<='h100;51:{high,med,low}<='h100;52:{high,med,low}<='h100;53:{high,med,low}<='h100;54:{high,med,low}<='h100;55:{high,med,low}<='h100;56:{high,med,low}<='h100;57:{high,med,low}<='h100;58:{high,med,low}<='h070;59:{high,med,low}<='h070;60:{high,med,low}<='h060;61:{high,med,low}<='h060;62:{high,med,low}<='h070;63:{high,med,low}<='h070;64:{high,med,low}<='h060;65:{high,med,low}<='h060;68:{high,med,low}<='h030; 69:{high,med,low}<='h030;68:{high,med,low}<='h030; 69:{high,med,low}<='h030;110:{high,med,low}<='h060; 111:{high,med,low}<='h010;110:{high,med,low}<='h060; 111:{high,med,low}<='h010;68:{high,med,low}<='h030; 69:{high,med,low}<='h030;68:{high,med,low}<='h030; 69:{high,med,low}<='h030;110:{high,med,low}<='h060; 111:{high,med,low}<='h010;110:{high,med,low}<='h060; 111:{high,med,low}<='h010;70:{high,med,low}<='h050;71:{high,med,low}<='h050;72:{high,med,low}<='h050;73:{high,med,low}<='h050;74:{high,med,low}<='h050;75:{high,med,low}<='h050;76:{high,med,low}<='h050;77:{high,med,low}<='h050;78:{high,med,low}<='h060;79:{high,med,low}<='h060;80:{high,med,low}<='h100;81:{high,med,low}<='h100;82:{high,med,low}<='h050;83:{high,med,low}<='h050;84:{high,med,low}<='h050;85:{high,med,low}<='h050;86:{high,med,low}<='h060;87:{high,med,low}<='h060;88:{high,med,low}<='h000;89:{high,med,low}<='h000;90:{high,med,low}<='h060;91:{high,med,low}<='h060;92:{high,med,low}<='h050;93:{high,med,low}<='h050;94:{high,med,low}<='h040;95:{high,med,low}<='h040;96:{high,med,low}<='h050;97:{high,med,low}<='h050;98:{high,med,low}<='h030;99:{high,med,low}<='h030;100:{high,med,low}<='h030;101:{high,med,low}<='h030;102:{high,med,low}<='h020;103:{high,med,low}<='h020;104:{high,med,low}<='h010;105:{high,med,low}<='h010;106:{high,med,low}<='h010;107:{high,med,low}<='h010;108:{high,med,low}<='h010;109:{high,med,low}<='h010;112:{high,med,low}<='h030; 113:{high,med,low}<='h030;112:{high,med,low}<='h030; 113:{high,med,low}<='h030;112:{high,med,low}<='h030; 113:{high,med,low}<='h030;112:{high,med,low}<='h030; 113:{high,med,low}<='h030;114:{high,med,low}<='h020;115:{high,med,low}<='h020;116:{high,med,low}<='h020;117:{high,med,low}<='h020;118:{high,med,low}<='h010;119:{high,med,low}<='h010;120:{high,med,low}<='h020;121:{high,med,low}<='h020;122:{high,med,low}<='h050;123:{high,med,low}<='h050;124:{high,med,low}<='h050;125:{high,med,low}<='h050;126:{high,med,low}<='h001;127:{high,med,low}<='h001;128:{high,med,low}<='h020;129:{high,med,low}<='h020;130:{high,med,low}<='h020;131:{high,med,low}<='h020;132:{high,med,low}<='h020;133:{high,med,low}<='h020;134:{high,med,low}<='h020;135:{high,med,low}<='h020;136:{high,med,low}<='h020;137:{high,med,low}<='h020;138:{high,med,low}<='h020;139:{high,med,low}<='h020;140:{high,med,low}<='h00

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论