![EDA實(shí)驗(yàn)報(bào)告波形發(fā)生_第1頁](http://file4.renrendoc.com/view/761f0737fe854816aa3bc6b21f162f40/761f0737fe854816aa3bc6b21f162f401.gif)
![EDA實(shí)驗(yàn)報(bào)告波形發(fā)生_第2頁](http://file4.renrendoc.com/view/761f0737fe854816aa3bc6b21f162f40/761f0737fe854816aa3bc6b21f162f402.gif)
![EDA實(shí)驗(yàn)報(bào)告波形發(fā)生_第3頁](http://file4.renrendoc.com/view/761f0737fe854816aa3bc6b21f162f40/761f0737fe854816aa3bc6b21f162f403.gif)
![EDA實(shí)驗(yàn)報(bào)告波形發(fā)生_第4頁](http://file4.renrendoc.com/view/761f0737fe854816aa3bc6b21f162f40/761f0737fe854816aa3bc6b21f162f404.gif)
![EDA實(shí)驗(yàn)報(bào)告波形發(fā)生_第5頁](http://file4.renrendoc.com/view/761f0737fe854816aa3bc6b21f162f40/761f0737fe854816aa3bc6b21f162f405.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、2009-2010第一學(xué)期北京工業(yè)大學(xué)實(shí)驗(yàn)學(xué)院EDA實(shí)驗(yàn)報(bào)告題 目 波形發(fā)生與嵌入式邏輯分析儀 專 業(yè) 電子信息工程 學(xué) 號(hào) 07521203 姓 名 馬艷 成 績 指導(dǎo)教師 2009 CREATEDATE yyyy年MM月dd日 * MERGEFORMAT 年 12 月 6 日一 實(shí)驗(yàn)?zāi)康膶W(xué)習(xí)內(nèi)嵌式邏輯分析工具Signal TabII測試波形功能。達(dá)到檢驗(yàn)設(shè)計(jì)效果和提高分析設(shè)計(jì)過程的能力。二 實(shí)驗(yàn)內(nèi)容與要求利用內(nèi)嵌式邏輯分析工具完成信號(hào)發(fā)生器設(shè)計(jì)及編譯、綜合、適配、仿真和硬件測試,能夠產(chǎn)生正弦波,方波,三角波,鋸齒波。三 實(shí)驗(yàn)平臺(tái)(1)硬件:計(jì)算機(jī)、GX-SOC/SOPC-DEVLAB Cy
2、cloneII EP2C35F672C8核心扳(2)軟件:Quartus II四 實(shí)驗(yàn)原理 嵌入式邏輯分析儀主要分為硬件部分和軟件部分。硬件部分由待測設(shè)計(jì)(DUT),嵌入到FPGA中的ELA IP核、RAM存儲(chǔ)單元以及JTAG接口組成;軟件部分由用戶設(shè)計(jì)軟件和集成在其中的ELA在線調(diào)試軟件組成。五 程序代碼-clkgen.vhdLIBRARY IEEE;USE IEEE.STD_LOGIC_1164.ALL;use ieee.std_logic_unsigned.all;ENTITY clkgen IS PORT(clkin:IN STD_LOGIC ; clkout: OUT STD_LOG
3、IC);END;ARCHITECTURE even OF clkgen ISconstant N:Integer:=16; SIGNAL coun:integer range 0 to N; SIGNAL clk1:STD_LOGIC;BEGIN PROCESS(clkin) BEGIN IF(clkinEVENT AND clkin=1)THEN IF(coun=N)THEN coun=0; clk1=Not clk1; else coun=coun+1; END IF; END IF; END PROCESS; clkout=clk1; END even;-方波library ieee;
4、use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity fang2 is port( clk : in std_logic; fd1 : out std_logic_vector(7 downto 0); end; ARCHITECTURE fang OF fang2 IS SIGNAL q:integer range 0 to 1;BEGINPROCESS(clk) BEGIN IF(clkEVENT AND clk=1)THEN qfd1fd1nul
5、l; end case; end process; end architecture;-三角波library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_arith.all;use ieee.std_logic_unsigned.all;entity sanj isport(clk: in std_logic; dd3 : out std_logic_vector(7 downto 0) );end;architecture one of sanj isbeginprocess(clk) variable num : std_logi
6、c_vector(7 downto 0);variable ff : std_logic;beginif (clkevent and clk=1) then if ff = 0 then if num=11111000then num:=11111111; ff:=1; else num:=num+8; end if; else if num=00000111 then num:=00000000; ff:=0; else num:=num-8; end if; end if; end if; dd3=num; end process;end;LIBRARY IEEE;USE IEEE.STD
7、_LOGIC_1164.ALL;entity jvchi2 is port(clk,up_down: in std_logic; dd2:out integer range 255 downto 0); end; architecture one of jvchi2 is signal d,temp:integer range 255 downto 0; begin process(clk) begin if(clkevent and clk=1) then if temp198 then temp=temp+2; else temp=0; end if; end if; end proces
8、s; process(temp,up_down) begin if up_down=0 then d=temp; else d=198-temp; end if; end process; dd2=d; end;六 引腳定義及代碼代碼:# Copyright (C) 1991-2008 Altera Corporation# Your use of Altera Corporations design tools, logic functions # and other software and tools, and its AMPP partner logic # functions, an
9、d any output files from any of the foregoing # (including device programming or simulation files), and any # associated documentation or information are expressly subject # to the terms and conditions of the Altera Program License # Subscription Agreement, Altera MegaCore Function License # Agreemen
10、t, or other applicable license agreement, including, # without limitation, that your use is for the sole purpose of # programming logic devices manufactured by Altera and sold by # Altera or its authorized distributors. Please refer to the # applicable agreement for further details.# Quartus II: Gen
11、erate Tcl File for Project# File: wave.tcl# Generated on: Thu Nov 12 12:00:52 2009# Load Quartus II Tcl Project packagepackage require :quartus:projectset need_to_close_project 0set make_assignments 1# Check that the right project is openif is_project_open if string compare $quartus(project) wave pu
12、ts Project wave is not openset make_assignments 0 else # Only open if not already openif project_exists wave project_open -revision wave wave else project_new -revision wave waveset need_to_close_project 1# Make assignmentsif $make_assignments set_global_assignment -name FAMILY Cyclone IIset_global_
13、assignment -name DEVICE EP2C35F672C8set_global_assignment -name TOP_LEVEL_ENTITY wavetopset_global_assignment -name ORIGINAL_QUARTUS_VERSION 8.0set_global_assignment -name PROJECT_CREATION_TIME_DATE 11:58:59 NOVEMBER 12, 2009set_global_assignment -name LAST_QUARTUS_VERSION 8.0set_global_assignment -
14、name USE_GENERATED_PHYSICAL_CONSTRAINTS OFF -section_id eda_palaceset_global_assignment -name DEVICE_FILTER_PACKAGE FBGAset_global_assignment -name DEVICE_FILTER_PIN_COUNT 672set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 8set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0set_global_assignm
15、ent -name MAX_CORE_JUNCTION_TEMP 85set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Topset_global_assignment -name PARTITION_COLOR 14622752 -section_id Topset_global_assignment -name LL_ROOT_REGION ON -section_id Root Regionset_global_assignment -name LL_MEMBER_STATE LOCKED -sec
16、tion_id Root Regionset_global_assignment -name BDF_FILE wavetop.bdfset_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top# Commit assignmentsexport_assignmentsset_location_assignment PIN_B13 -to clkset_location_assignment PIN_F6 -to switch0set_location_assignment PIN_
17、A21 -to switch1set_location_assignment PIN_B21 -to switch2set_location_assignment PIN_J25 -to dac_abset_location_assignment PIN_J26 -to dac_csset_location_assignment PIN_U26 -to dac_wrset_location_assignment PIN_G21 -to dout0set_location_assignment PIN_E23 -to dout1set_location_assignment PIN_E24 -to dout2set_location_assignment PIN_B24 -to dout3set_location_assi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024-2025學(xué)年廣東省廣州市部分學(xué)校高二上學(xué)期期中考試歷史試卷
- 2025年企業(yè)內(nèi)部控制完善咨詢合同
- 2025年住宅小區(qū)機(jī)動(dòng)車停放安全與管理協(xié)議
- 2025年高效酸霧凈化器項(xiàng)目規(guī)劃申請報(bào)告模式
- 2025年企業(yè)并購協(xié)議問答
- 2025年建筑施工照明設(shè)備安裝安全策劃協(xié)議書
- 2025年水利項(xiàng)目施工勞務(wù)合同
- 2025年酒類銷售合作合同
- 2025年醫(yī)院安保人員雇傭合同范本
- 2025年住宅建設(shè)項(xiàng)目合同管理與績效
- 城市區(qū)域環(huán)境噪聲監(jiān)測實(shí)驗(yàn)報(bào)告
- MBTI量表完整版本
- 護(hù)理操作-吸痰
- 重癥肺炎的基本知識(shí)宣教
- 中醫(yī)適宜技術(shù)-腕踝針
- 初二上勞動(dòng)技術(shù)課件電子版
- 創(chuàng)業(yè)計(jì)劃書模板-創(chuàng)業(yè)計(jì)劃書-商業(yè)計(jì)劃書模板-項(xiàng)目計(jì)劃書模板-商業(yè)計(jì)劃書30
- 醫(yī)院護(hù)理帶教老師競聘課件
- 四川虹科創(chuàng)新科技有限公司高強(qiáng)超薄耐摔玻璃智能制造產(chǎn)業(yè)化項(xiàng)目環(huán)境影響報(bào)告
- 多聯(lián)機(jī)空調(diào)系統(tǒng)設(shè)計(jì)課件
- 燭之武退秦師 全市一等獎(jiǎng)
評(píng)論
0/150
提交評(píng)論