亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? compact_flash.v

?? 基于 MAXII CPLD的對Compact_Flash的讀寫
?? V
字號:
//*******************************************************************************************************************************************  // COMPACT FLASH  // March 2007//*******************************************************************************************************************************************//Top modulemodule compact_flash( //Input signals for the compact flash card                      host_address,           //Address bus                        ce_1,                   //Active low Card select signal                       iord,                   //Active low I/O read strobe                      iowr,                   //Active low I/O write strobe                      oe,                     //Active low Output enable strobe                      reset,                  //Reset the compact flash card                       reg_1,                  //Low during I/O operations,in memory mode used to distinguish betwen common and attribute memory                      we,                     //Active low signal used for writing configuration registers                                           //Input signals for the compact flash interface                      h_enable,               //Chip enable                      h_ack,                  //Acknowledgement to the interrupt request made by the interface                      h_control,              //Selecting between I/O and memory READ/WRITE operations                      h_reset,                //Hardware and software reset					  h_iom ,                 //Selecting between I/O and Memory mode                        h_address,              //Address bus from the host to the interface                                             //Output signals of the compact flash card		              ready,                  //Asserted low during power up or reset,and made high in the memory mode to show that it's ready to accept data		              cd_1,                   //Active low Card detect siganls 	                  ireq,            		  //Interrrupt request from I/O device			          			          //Output signals of the compact flash interface			          h_int,                  //Interrupt siganl for the host 			          h_ready                 //Indicates the status of the CF+ card			                   );            				output [10:0] host_address;		output [1:0] ce_1;		output we;		output reg_1;		output iord;		output iowr;		output reset;		output oe;		output h_int;		output h_ready;						input [1:0] h_reset;		input [10:0] h_address;					input [3:0] h_control;		input [1:0] cd_1;		input h_ack;		input h_enable;		input ready;		input h_iom;		input ireq;						wire h_ready;		wire ready_int;		wire hint_int;		wire hint_n0;		wire [10:0] h_address;						reg  [10:0] host_address;        reg  [1:0]  ce_1;		reg  we;		reg  reg_1;		reg  iord;		reg  iowr;		reg  reset;		reg  oe;		reg  ready_n;		initial      begin		  host_address=11'bxxxxxx00000;          ce_1=2'bx0;		  we=1;		  reg_1=0;		  iord=0;		  iowr=1;		  oe=0;			end						assign ready_int = ready_n;		assign h_ready = ready_int;	   assign  h_int = (~cd_1[0] & ~cd_1[1] & h_enable) ? 1'b0 : 1'b1 ;        //All assignments are synchronized to the positive of the acknowledgement signalalways @(posedge h_ack )         begin            //As long as acknowledgement siganl is high the process continues   if (h_reset==2'b11)           begin            //Hardware reset,so the acknowledgement is made low         reset=1'b1;       ce_1=2'bx0;       reg_1=1'b0;       oe=1'b0;       we=1'b1;       host_address[10:5]=6'b111111;       host_address[4:0]=5'b00000;                                                      end   else if(h_iom == 0)             begin                   //Checking for memory mode          reset=1'b0;                       if(ready==1'b1)          begin          if(h_control==4'b0000)begin                    //Configuration option register read                 			   ce_1=2'bx0;               reg_1=1'b0;               oe=1'b0;               we=1'b1;               host_address[10:5]=6'bxxxxxx;               host_address[4:0]=5'b00000;            end     if((h_control==4'b0001)&(h_reset==2'b00))        begin                     //Configuration option register write             reset=1'b1;                                      //Software reset ,so the acknowledgement goes low             ce_1=2'bx0;             reg_1=1'b0;             oe=1'b0;             we=1'b1;             host_address[10:5]=6'bxxxxxx;             host_address[4:0]=5'b00000;                      end                                  //An interrupt is generated by the interface to continue with the process further                 if(h_control==4'b0001) begin             ce_1=2'bx0;             reg_1=1'b0;             oe=1'b1;             we=1'b0;             host_address[10:5]=6'bxxxxxx;             host_address[4:0]=5'b00000;                end                        if(h_control==4'b0010)        begin                   //Card status register read           ce_1=2'bx0;           reg_1=1'b0;           oe=1'b0;           we=1'b1;           host_address[10:5]=6'bxxxxxx;           host_address[4:0]=5'b00010;        end            if(h_control==4'b0011)         begin                   //Card status register write            ce_1=2'bx0;           reg_1=1'b0;           oe=1'b1;           we=1'b0;           host_address[10:5]=6'bxxxxxx;           host_address[4:0]=5'b00010;        end      if(h_control==4'b0100)          begin                  //Pin replacement register read          ce_1=2'bx0;          reg_1=1'b0;          oe=1'b0;          we=1'b1;          host_address[10:5]=6'bxxxxxx;          host_address[4:0]=5'b00100;        end      if(h_control==4'b0101)           begin                 //Pin replacement register write          ce_1=2'bx0;          reg_1=1'b0;          oe=1'b1;          we=1'b0;          host_address[10:5]=6'bxxxxxx;          host_address[4:0]=5'b00100;       end      if(h_control==4'b0110)            begin               //Common memory read (8 bit D7-d0)          ce_1=2'b10;          reg_1=1'b1;          oe=1'b0;          we=1'b1;          host_address[10:0]=h_address[10:0];        end        if(h_control==4'b0111)           begin               //Common memory read (8 bit D15-D8)           ce_1=2'b01;           reg_1=1'b1;           oe=1'b0;           we=1'b1;           host_address[10:0]=h_address[10:0];        end        if(h_control==4'b1100)           begin               //Common memory read (16 bit D15-D0)          ce_1=2'b00;          reg_1=1'b1;          oe=1'b0;          we=1'b1;          host_address[10:1]=h_address[10:1];          host_address[0]=1'b0;        end       if(h_control==4'b1000)           begin                //Common memory write(8 bit D7-D0)           ce_1=2'b10;           reg_1=1'b1;           oe=1'b1;           we=1'b0;           host_address[10:0]=h_address[10:0];        end        if(h_control==4'b1001)           begin                //Common memory write(8 bit D15-D8)           ce_1=2'b01;           reg_1=1'b1;           oe=1'b1;           we=1'b0;           host_address[10:0]=h_address[10:0];        end       if(h_control==4'b1010)            begin               //Common memory write(16 bit D15-D0)            ce_1=2'b00;          reg_1=1'b1;          oe=1'b1;          we=1'b0;          host_address[10:1]=h_address[10:1];          host_address[0]=1'b0;       end       if(h_control==4'b1011)            begin               //Card information structure read          ce_1=2'bx0;          reg_1=1'b0;          oe=1'b0;          we=1'b1;          host_address[10:1]=10'bxxxxxxxxxx;          host_address[0]=1'b0;               end                    end            ready_n=ready;                          end   else if((ireq==1)&(h_iom==1))    begin             //Checking for I/O mode		   reset=1'b0;         if(h_control==4'b0000)          begin             //I/O base 0 register               ce_1=2'bx0;             reg_1=1'b0;             oe=1'b1;             we=1'b0;             host_address[10:5]=6'bxxxxxx;             host_address[4:0]=5'b01010;          end          if(h_control==4'b0001)           begin             //I/O base 1 register               ce_1=2'bx0;             reg_1=1'b0;             oe=1'b0;                                            we=1'b1;             host_address[10:5]=6'bxxxxx;             host_address[4:0]=5'b01100;          end         if(h_control==4'b0010)           begin             //I/O limit               ce_1=2'bx0;             reg_1=1'b0;             oe=1'b1;             we=1'b0;             host_address[10:5]=6'bxxxxxx;             host_address[4:0]=5'b10010;          end           if(h_control==4'b0011)          begin            //I/O mode single  byte input access (8 bits)               ce_1=2'b10;              reg_1=1'b0;              iord=1'b0;              iowr=1'b1;              host_address[0]=1'b0;           end          if(h_control==4'b0100)          begin            //I/O mode single byte output access (8 bits)             ce_1=2'b10;             reg_1=1'b0;             iord=1'b1;             iowr=1'b0;             host_address[0]=1'b0;          end          if(h_control==4'b0101)          begin            //I/O mode word input access (16 bits)               ce_1=2'b00;             reg_1=1'b0;             iord=1'b0;             iowr=1'b1;             host_address[0]=1'b0;          end          if(h_control==4'b0110)          begin            //I/O mode word output access (16 bits)             ce_1=2'b00;             reg_1=1'b0;             iord=1'b1;             iowr=1'b0;             host_address[0]=1'b0;          end          if(h_control==4'b0111)          begin            //I/O read inhibit               ce_1=2'bxx;             reg_1=1'b1;             iord=1'b0;             iowr=1'b1;             host_address[0]=1'bx;          end          if(h_control==4'b1000)           begin           //I/O write inhibit               ce_1=2'bxx;             reg_1=1'b1;             iord=1'b1;             iowr=1'b0;             host_address[0]=1'bx;          end         if(h_control==4'b1001)             begin          //High byte input only            ce_1=2'b10;            reg_1=1'b0;            iord=1'b0;            iowr=1'b1;            host_address[0]=1'bx;         end         if(h_control==4'b1010)             begin          //High byte output only             ce_1=2'b10;            reg_1=1'b0;            iord=1'b1;            iowr=1'b0;            host_address[0]=1'bx;         end             end                end                    endmodule		

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品欧美日韩精品一| 一区二区三区在线免费播放| 日韩精品久久久久久| 91伊人久久大香线蕉| 国产精品久久久久久一区二区三区| 国产盗摄女厕一区二区三区 | 日韩限制级电影在线观看| 亚洲午夜在线电影| 欧美精品久久久久久久多人混战| 亚洲超丰满肉感bbw| 9191国产精品| 日韩成人一级大片| 日韩精品一区二区三区老鸭窝| 日韩黄色片在线观看| 日韩午夜在线播放| 精品一区二区三区在线观看国产| 91精品欧美一区二区三区综合在| 无码av中文一区二区三区桃花岛| 欧美精品v国产精品v日韩精品| 亚洲精品成人a在线观看| 99久久免费视频.com| 夜夜操天天操亚洲| 欧美理论片在线| 久久精品理论片| 国产欧美一区二区精品仙草咪| 国产一区啦啦啦在线观看| 精品福利二区三区| 国产黄色精品网站| 精品美女一区二区三区| 成人午夜视频免费看| 亚洲精品中文字幕乱码三区| 色爱区综合激月婷婷| 人人精品人人爱| 91精彩视频在线观看| 人人精品人人爱| 6080yy午夜一二三区久久| 国产伦精一区二区三区| 成人欧美一区二区三区视频网页| 色爱区综合激月婷婷| 日本欧洲一区二区| 国产精品成人一区二区艾草| 欧美日韩国产美| 国产一区二区福利| 亚洲免费观看高清完整版在线观看熊| 欧美日韩精品福利| 国产真实乱子伦精品视频| 一区二区三区在线不卡| 国产欧美1区2区3区| 欧美电影免费提供在线观看| 欧美性猛交xxxxxx富婆| 成人动漫av在线| 国产精品一区不卡| 久久国产精品第一页| 亚洲线精品一区二区三区八戒| 亚洲国产精华液网站w| 精品国产乱码久久久久久1区2区 | 在线观看成人小视频| 国产一二精品视频| 免费在线观看精品| 亚洲va天堂va国产va久| 一区二区在线观看视频在线观看| 日本一区二区三区国色天香 | 久久精品视频免费观看| 日韩欧美国产综合一区 | 欧美一级久久久| 欧美天天综合网| 在线视频国产一区| 91浏览器入口在线观看| 91在线视频官网| 成人一级片网址| 国产91高潮流白浆在线麻豆| 久草中文综合在线| 国内精品视频666| 国产精品自拍毛片| 国产成人鲁色资源国产91色综| 精品亚洲免费视频| 寂寞少妇一区二区三区| 久久草av在线| 国产一区视频导航| 粉嫩高潮美女一区二区三区| 极品销魂美女一区二区三区| 久久不见久久见免费视频1| 久久精品国产精品青草| 极品美女销魂一区二区三区免费| 美女视频黄免费的久久| 国产在线精品不卡| 岛国av在线一区| 99精品国产99久久久久久白柏| av福利精品导航| 91久久精品一区二区三| 欧美日本韩国一区二区三区视频 | 91网站最新地址| 欧美中文字幕一区二区三区| 欧美少妇bbb| 欧美成人福利视频| 中文乱码免费一区二区| 一区二区三区久久| 视频一区欧美日韩| 国产精品自在在线| 99国产精品久久久| 欧美人牲a欧美精品| 欧美不卡一区二区三区四区| 久久久一区二区三区| 亚洲人妖av一区二区| 香蕉乱码成人久久天堂爱免费| 久久99日本精品| av在线不卡免费看| 欧美私模裸体表演在线观看| 日韩一区二区三区电影| 中文字幕av不卡| 亚洲午夜电影在线观看| 国产一区二区三区在线观看免费视频| 成人精品免费网站| 91精品国产色综合久久ai换脸| 久久综合久久综合久久| 亚洲一区二区三区中文字幕在线| 久久国产精品色| 色哦色哦哦色天天综合| 精品日韩av一区二区| 亚洲精品视频在线观看网站| 麻豆国产欧美一区二区三区| 99re亚洲国产精品| 欧美一区二区三区视频免费| 国产精品乱码人人做人人爱| 性久久久久久久久久久久| 国产福利91精品| 911精品国产一区二区在线| 中文字幕精品一区二区三区精品| 亚洲国产精品一区二区久久| 国产不卡免费视频| 4438x亚洲最大成人网| 中文字幕一区二区三区不卡 | 久久精品在这里| 亚洲在线视频网站| 成人av在线播放网站| 精品国产乱码久久久久久久| 亚洲五码中文字幕| jlzzjlzz欧美大全| 久久天堂av综合合色蜜桃网| 午夜精品久久久久| 色悠悠亚洲一区二区| 国产精品免费看片| 精品一区二区免费在线观看| 欧美群妇大交群的观看方式| 成人欧美一区二区三区| 福利一区福利二区| 精品国产在天天线2019| 青青草伊人久久| 欧美精品国产精品| 夜夜揉揉日日人人青青一国产精品| 成人激情黄色小说| 久久噜噜亚洲综合| 黄色成人免费在线| 日韩欧美国产电影| 日本成人在线不卡视频| 欧美日本一区二区三区| 亚洲成人www| 在线观看日韩国产| 亚洲一区二区三区在线看| 972aa.com艺术欧美| 日韩一区中文字幕| 9人人澡人人爽人人精品| 国产日韩精品一区二区三区| 国产一区二区三区四| 久久美女高清视频| 国产丶欧美丶日本不卡视频| 国产亚洲综合在线| 国产高清精品网站| 欧美激情资源网| 岛国一区二区在线观看| 国产精品每日更新| 91麻豆国产自产在线观看| 综合亚洲深深色噜噜狠狠网站| 99国产精品久久久久久久久久| 亚洲欧洲韩国日本视频| 99re这里只有精品视频首页| 亚洲色图一区二区| 欧美日韩亚洲高清一区二区| 午夜亚洲福利老司机| 日韩色视频在线观看| 久久99国内精品| 亚洲国产经典视频| 91小视频免费看| 亚洲va韩国va欧美va精品| 91精品黄色片免费大全| 国产在线精品一区在线观看麻豆| 久久这里只有精品6| jlzzjlzz亚洲女人18| 樱花草国产18久久久久| 欧美日韩欧美一区二区| 麻豆freexxxx性91精品| 久久久精品一品道一区| av高清不卡在线| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲精品视频免费观看| 欧美日韩国产bt| 国产精品一区二区久激情瑜伽| 国产精品成人免费| 欧美日韩视频在线第一区 | 婷婷六月综合网|