AHDL语法入门(Altera公司提供)

AHDL语法入门(Altera公司提供)

ID:44988629

大小:643.00 KB

页数:51页

时间:2019-11-06

AHDL语法入门(Altera公司提供)_第1页
AHDL语法入门(Altera公司提供)_第2页
AHDL语法入门(Altera公司提供)_第3页
AHDL语法入门(Altera公司提供)_第4页
AHDL语法入门(Altera公司提供)_第5页
资源描述:

《AHDL语法入门(Altera公司提供)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、AHDL TrainingClassDannyMokAlteraHKFAE(dmok@altera.com)9/19/2021P.1WhatisAHDLAlteraHardwareDescriptionLanguagedevelopbyAlteraintegrateintotheAlterasoftwareMax+PlusIIdescriptionthehardwareinlanguageinsteadofgraphiceasytomodifyeasytomaintaneverygoodforcomplexcombinationallogicB

2、CDto7Segmentconverteraddressdecodingstatemachinemorethanyouwant……..9/19/2021P.2continue...AseasyasGraphicEntryAspowerfulasHDL(HardwareDescriptionLanguage)VHDL,VerilogHDLetc.9/19/2021P.3HowtousetheADHLuseanytexteditortocreatethefileAlteraSoftwareMax+PlusIIprovidetexteditorCli

3、ckthebuttonTypeinyourAHDLdesignfile9/19/2021P.4continue…..CreateyourAHDLfile9/19/2021P.5continue…..saveyourADHLfileasname.TDFMustbethesame9/19/2021P.6continue...Clickonthisicon9/19/2021P.7ErrorLocationduringCompilationEasytolocatetheerrorClicktheerrormessageClicktheLocatebut

4、tonErrorlocation9/19/2021P.8AHDLTemplateIforgot…….If-then-elsecase-endcaseloop-endloop??…???Modifythecode9/19/2021P.9GeneralAHDLFormatSUBDESIGNdecode1(input_pin_name:INPUT;input_bus_name[15..0]:INPUT;output_pin_name:OUTPUT;output_bus_name:OUTPUT;)BEGINouptut_pin_name=input_p

5、in_name;output_bus_name=input_bus_name;END;KeyWordDefienI/OportLogicAHDLformat9/19/2021P.10YourFirstAHDLdesign--AddressDecoderChip_enable=a0&a1&a2&!a3SUBDESIGNdecode1(a[3..0]:input;chip_enable:output;)beginchip_enable=(a[3..0]==H"7");end;9/19/2021P.11WhyIuseAHDLinsteadofGrap

6、hicEasytoModifyDocumentduringthecodingIwanttodecodeH”A”notH”7”SUBDESIGNdecode1(a[3..0]:input;chip_enable:output;)beginchip_enable=(a[3..0]==H"A");end;SelfExplaintheFunctionOnlythingtochangeNeedmoreefforttomodifyChip_enable=!a0&a1&!a2&a39/19/2021P.12MoreSUBDESIGNdecode1(a[3..

7、0]:input;chip_enable:output;)beginchip_enable=(a[3..0]==B"1x0x");end;Somebitcanbeignoreforcomparsion9/19/2021P.13SomethingyouneedtoknowAddition:+Subtraction:-NumericEquality:==Notequalto:!=Greaterthan:>Greaterthanorequalto:>=Lessthan:

8、D:&9/19/2021P.14UseConstantFunctionUseConstantifthesamenumber,textstring,or

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。