Î人Àí¹¤´óѧFPGAʵÑ鱨¸æ·¶±¾»Ô»Ô°æ

block here¡±×¢Ê͵ÄÏ·½£» 4) ¿½±´×é¼þÀý»¯£¨´Ó your_instance_name : program µ½×îÄ©£©²¢Õ³Ìùµ½ loopback.vhd´úÂëÖеġ°-- insert component instantiation for the Memory here¡±×¢Ê͵ÄÏ·½£¬È»ºó°´ÕÕÈçÏÂÄÚÈÝ£¬ÐÞ¸ÄÌí¼ÓµÄÀý»¯À´Íê³É´Ë×é¼þÔÚ±¾¹¤³ÌµÄÀý»¯£» my_program : program port map ( clka => clk50MHz, addra => address, douta => instruction, clkb => '0', addrb => \ doutb => open ); 5) Íê³ÉºóÑ¡Ôñ File ÏÂÀ­²Ëµ¥ÖÐµÄ Save ±£´æ£¬´Ó¹¤³ÌµÄ Sources ´°¿Ú»á¿´µ½program.xco ×÷Ϊһ¸öÄ£¿é¼ÓÈëµ½¶¥²ãÉè¼ÆÎļþÖУ» ͼ5-11 ²Ù×÷ʾÒâ 33

(4) ½øÐÐÐÐΪ·ÂÕæ²¢ÏÂÔزâÊÔ 1£©ÔÚ¹¤³ÌµÄ Sources ´°¿Ú£¬Sources for Ñ¡Ôñ Synthesis/Implementation£¬Ñ¡Ôñ¹¤³ÌµÄprogram.xco£¬È»ºóÔÚ Processes ´°¿ÚÕ¹¿ª COREGEN, ²¢Ë«»÷ View Verilog/VHDL Functional Model¡£Õâ¸öÎļþËùÉæ¼°µÄÄ£¿éÔÚ½øÐÐÐÐΪ·ÂÕæµÄʱºòÊÇ×Ô¶¯´Ó ISE µÄProject Navigator Èí¼þµÄ XilinxCoreLib µÄ·ÂÕæ¿âÖе÷Óõģ» 2£©ÔÚ¹¤³ÌµÄ Sources ´°¿Ú£¬Sources for Ñ¡Ôñ Behavioral Simulation£¬²¢Ë«»÷´ò¿ªtestbench.vhd/v ²âÊÔ¼¤ÀøÎļþ¡£Õ¹¿ª Processes ´°¿ÚÖÐµÄ Xilinx ISE Simulator£¬ÓÒ¼üµ¥»÷Simulate Behavioral Model£¬²¢Ñ¡ÔñProperties£¬µ¯³öµÄ¶Ô»°¿ò½«¡°Property display level ¡±Ñ¡ÏîÑ¡Ôñ¡°Advanced¡±£¬¡°Proterty Name¡± Ñ¡ÏîÖÐ Simulation Run Time ÊäÈë 50000 ns£¬ÈçÏÂͼËùʾ¡£µ¥»÷ OK °´Å¥£» ͼ5-12 ²Ù×÷ʾÒâ 3£©Ë«»÷ Simulate Behavioral Model£¬¹Û²ìÉú³ÉµÄ²¨ÐÎÊÇ·ñÕýÈ·£¬ÊÇ·ñÓëËùд²âÊÔ¼¤ÀøËùÒªµÄ½á¹ûÏà·ûºÏ£» 4£©ÔÚ¹¤³ÌµÄ Sources ´°¿Ú£¬µ¥»÷¹¤³Ì¶¥²ãÎļþ loopback.vhd/v Îļþ£¬Õ¹¿ª Processes´°¿ÚÖÐµÄ Generate Programming file£¬È»ºóË«»÷ Configure Device (iMPACT)¡£µ¯³ö iMPACT ¶Ô»°¿òºó£¬Ñ¡Ôñ Configure Devices using Boundary-Scan (JTAG)£¬È»ºóµ¥»÷ Finish °´Å¥¡£ 34

ͼ5-13 ²Ù×÷ʾÒâ 5£©µ±µÈµ½µ¯³ö Assign New Configuration File ¶Ô»°¿òºó£¬Ç°Á½¸öÆ÷¼þ¶¼Ñ¡Ôñ bypass°´Å¥£¬×îºóÒ»¸öÆ÷¼þµ¥»÷ loopback.bit ÎļþÑ¡Ôñ Open °´Å¥£¬È»ºóÔÙµã»÷ OK °´Å¥ºóµ¯³öÒ»¸ö¾¯¸æÐÅÏ¢£¬µ¥»÷ OK °´Å¥ºóÈçͼ£º ͼ5-14 ²Ù×÷ʾÒâ 6£©ÔÚiMPACT ´°¿ÚÓÒ¼üµã»÷xc2vp30£¬Ñ¡ÔñProgram ºóµ¯³öProgramming Properties´°¿Úµ¥»÷ OK °´Å¥¡£Èç¹ûÏÂÔسɹ¦Ôò³öÏÖ Program Succeeded£» 35

ͼ5-15 ²Ù×÷ʾÒâ 7£©ÔÚ³¬¼¶Öն˴°¿ÚÔò»á¿´µ½ ͼ5-16 ÏÔʾʾÒâ 36

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)