1、江南大学物联网工程学院(通控类)计算机组成原理实验报告第 2 次实验实验名称:存储器实验 专 业:物联网 1402 实验组别: 姓名: 学号: 同实验者姓名: 记录 实验时间: 2016 年 11 月 29 日评定成绩: 报告审阅教师: 文字图表(30% ) 数据处理(40%)内容完整(30%)A B C D E A B C D E A B C D E成绩评定一、实验目的1. 掌握存储器的连线,用法2. 掌握存储器的读写操作二、 实验仪器设备PC 一台实验平台三、 实验原理及数据分析1. 实验原理图wesw20outenabsw19cssw18XLXN_70-7data_out0-7- LED
2、0-7XLXN_50-7address0-7- SW1-8XLXN_80-7data_in0-7sw0-72. 实验步骤(1) 建立工程文件,添加 mem_256*8,three_state_buf 实验模块,完成原理图设计,clock 端口命名为 clk(2) 修改用户约束文件,建立端口名与实验箱上拨动开关及 LED 灯对应关系,注意数据排列时的高低顺序。#-CLOCK-NET “clk“ LOC = “L15“;#-Atlys led output-#NET “atlys_led0“ LOC = U18; #Atlys LD0#NET “atlys_led1“ LOC = M14; #At
3、lys LD1#NET “atlys_led2“ LOC = N14; #Atlys LD2#NET “atlys_led3“ LOC = L14; #Atlys LD3#NET “atlys_led4“ LOC = M13; #Atlys LD4#NET “atlys_led5“ LOC = D4; #Atlys LD5#NET “atlys_led6“ LOC = P16; #Atlys LD6#NET “atlys_led7“ LOC = N12; #Atlys LD7#-Atlys Switch input-NET “XLXN_80“ LOC = A10; # Atlys sw0NET
4、 “XLXN_81“ LOC = D14; # Atlys sw1NET “XLXN_82“ LOC = C14; # Atlys sw2NET “XLXN_83“ LOC = P15; # Atlys sw3NET “XLXN_84“ LOC = P12; # Atlys sw4NET “XLXN_85“ LOC = R5; # Atlys sw5NET “XLXN_86“ LOC = T5; # Atlys sw6NET “XLXN_87“ LOC = E4; # Atlys sw7#-EES261 switch input-NET “We“ LOC = “U11“; #SW20NET “
5、Outenab“ LOC = “R10“; #SW19NET “cs“ LOC = “U10“; #SW18#NET “swt16“ LOC = “R8“; #SW17#NET “swt15“ LOC = “M8“; #SW16#NET “swt14“ LOC = “U8“; #SW15#NET “swt13“ LOC = “U7“; #SW14#NET “swt12“ LOC = “N7“; #SW13#NET “swt11“ LOC = “T6“; #SW12#NET “swt10“ LOC = “R7“; #SW11#NET “swt9“ LOC = “N6“; #SW10#NET “s
6、wt8“ LOC = “U5“; #SW9#NET “XLXN_57“ LOC = “V5“; #SW8NET “XLXN_56“ LOC = “P7“; #SW7NET “XLXN_55“ LOC = “T7“; #SW6NET “XLXN_54“ LOC = “V6“; #SW5#NET “XLXN_53“ LOC = “P8“; #SW4NET “XLXN_52“ LOC = “V7“; #SW3NET “XLXN_51“ LOC = “V8“; #SW2NET “XLXN_50“ LOC = “N8“; #SW1# #-EES261 leds output-NET “XLXN_7“ L
7、OC = “U16“; #LED1NET “XLXN_7“ LOC = “U15“; #LED2NET “XLXN_7“ LOC = “U13“; #LED3NET “XLXN_7“ LOC = “M11“; #LED4NET “XLXN_7“ LOC = “R11“; #LED5NET “XLXN_7“ LOC = “T12“; #LED6NET “XLXN_7“ LOC = “N10“; #LED7NET “XLXN_7“ LOC = “M10“; #LED8#-hex7seg-# NET “an“ LOC = “V16“;# NET “an“ LOC = “V15“;# NET “an“
8、 LOC = “V13“;# NET “an“ LOC = “N11“;# # NET “a_to_g“ LOC = “T8“; #a# NET “a_to_g“ LOC = “V10“; #b# NET “a_to_g“ LOC = “T10“; #c# NET “a_to_g“ LOC = “V11“; #d# NET “a_to_g“ LOC = “N9“; #e # NET “a_to_g“ LOC = “P11“; #f# NET “a_to_g“ LOC = “V12“; #g# NET “dp“ LOC = “T11“; #dp#-END-编译,下载(3 ) 向存储器写入几个数据,然后读出验证是否正确,存储器模块中 we 是写信号,outenab 是读信号,cs 是片选信号,均为高电平有效。(4 ) 实验结果图实验过程,首先向地址 0X01 写入数据 00000001,然后向地址 0X02 写入数据00000111,最后分别读取这两个地址中的数据。(5 ) 实验心得通过本次实验我掌握存储器的连线,用法和存储器的读写操作,理解了存储器的工作原理,增强了实验动手能力,对书本上的知识理解更加深刻。