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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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一区二区三区免费野_久草精品视频
精品在线亚洲视频| a4yy欧美一区二区三区| 欧美日韩成人一区二区| 亚洲国产视频在线| 欧美日韩高清一区| 日韩av一区二区在线影视| 欧美一级搡bbbb搡bbbb| 蜜桃久久精品一区二区| 亚洲精品一线二线三线 | 日韩一区在线看| 93久久精品日日躁夜夜躁欧美| 日韩一区在线看| 在线影视一区二区三区| 日日摸夜夜添夜夜添国产精品| 日韩一区二区不卡| 高清视频一区二区| 亚洲乱码日产精品bd| 欧美日韩一本到| 精品影院一区二区久久久| 久久久国产午夜精品| 北条麻妃国产九九精品视频| 亚洲综合免费观看高清完整版在线 | 激情六月婷婷综合| 日韩欧美在线综合网| 国产成人超碰人人澡人人澡| 国产免费观看久久| 在线视频亚洲一区| 激情综合五月婷婷| 国产欧美一区二区三区网站| 国产精品白丝av| 亚洲制服丝袜一区| 久久免费看少妇高潮| 国产成人在线免费观看| 亚洲va欧美va天堂v国产综合| 欧美变态口味重另类| 成人av电影在线观看| 奇米精品一区二区三区四区 | 成人免费一区二区三区在线观看| 欧美日韩卡一卡二| 丰满亚洲少妇av| 日韩va亚洲va欧美va久久| 中文欧美字幕免费| 欧美性受xxxx| 国产精品一二三四区| 日韩av高清在线观看| 日本一区二区久久| 56国语精品自产拍在线观看| 99久久久无码国产精品| 裸体在线国模精品偷拍| 亚洲人一二三区| 日韩午夜激情视频| 色哟哟亚洲精品| 国产酒店精品激情| 青青草视频一区| 亚洲午夜一区二区三区| 综合中文字幕亚洲| 久久综合九色综合欧美就去吻| 欧美午夜精品一区二区三区| 99久久精品免费| 国产精品一区二区在线观看不卡 | 91视频你懂的| 成人听书哪个软件好| 免费观看在线综合| 亚洲第一二三四区| 自拍视频在线观看一区二区| 国产亚洲va综合人人澡精品| 日韩一级完整毛片| 91麻豆精品国产91久久久使用方法 | 在线电影院国产精品| kk眼镜猥琐国模调教系列一区二区| 久久国产乱子精品免费女| 日韩精品1区2区3区| 亚洲午夜激情网页| 亚洲综合网站在线观看| 中文字幕欧美一| 日韩一区在线看| 亚洲免费伊人电影| 一区二区在线观看免费视频播放| 国产精品久久久久久久岛一牛影视 | 国产传媒久久文化传媒| 黄色资源网久久资源365| 精品一区二区三区免费毛片爱| 日韩黄色在线观看| 性欧美疯狂xxxxbbbb| 亚洲免费在线观看| 国产精品你懂的在线欣赏| 欧美日韩国产精选| 午夜精品aaa| 日韩美女啊v在线免费观看| 精品国产亚洲一区二区三区在线观看| 91麻豆精东视频| 国产传媒久久文化传媒| 国产情人综合久久777777| 色哟哟欧美精品| 亚洲欧美日韩中文播放| 国产日韩精品视频一区| 2017欧美狠狠色| 欧美日韩中文另类| 日韩欧美国产小视频| 5566中文字幕一区二区电影| 99精品视频免费在线观看| 国产尤物一区二区| 亚洲自拍与偷拍| 日本色综合中文字幕| 午夜免费久久看| 一级特黄大欧美久久久| 亚洲综合无码一区二区| 久久久九九九九| 亚洲美女区一区| 国产精品入口麻豆原神| 国产日本一区二区| 欧美一级黄色片| 日本一区二区不卡视频| 国产欧美精品一区| 国产喂奶挤奶一区二区三区| 欧美精品一区二| 亚洲人成伊人成综合网小说| 中文一区二区在线观看| 日本一区二区三区四区| xf在线a精品一区二区视频网站| 日韩一区二区三区免费看| 国产精品天美传媒| 久久精品综合网| 国产精品久久三| 一区免费观看视频| 日韩美女一区二区三区四区| ...av二区三区久久精品| 一区在线观看视频| 亚洲欧美日韩系列| 亚洲在线免费播放| 成人免费三级在线| 91污片在线观看| 欧美日韩日本视频| 精品美女在线观看| 亚洲国产成人精品视频| 亚洲一二三区视频在线观看| 午夜不卡av免费| 免费在线观看一区| 亚洲va国产天堂va久久en| 懂色av噜噜一区二区三区av| www.欧美日韩| 欧美日韩中文字幕一区二区| 欧美精品久久99久久在免费线 | 日本道精品一区二区三区| 在线日韩一区二区| 91精品国产aⅴ一区二区| 26uuu精品一区二区| 精品人伦一区二区色婷婷| 亚洲第一主播视频| 精品在线免费观看| a在线欧美一区| 国产成人福利片| 久久久国产精华| 一区二区三区精品在线| 免费在线观看一区| 国产一区二区伦理片| 欧美成人女星排行榜| 国产精品国产三级国产有无不卡| 亚洲第一主播视频| 国产另类ts人妖一区二区| 精品国产凹凸成av人导航| 国产精品亲子乱子伦xxxx裸| 亚洲成人在线免费| 成人黄色av网站在线| 中文字幕第一区二区| 午夜精品成人在线视频| jvid福利写真一区二区三区| 欧美日韩成人一区| 亚洲国产精品一区二区www | 国产亚洲精品aa| 亚洲欧美偷拍卡通变态| 国产精品一区二区三区网站| 精品免费国产二区三区 | 中文字幕av一区二区三区高| 青娱乐精品视频| av欧美精品.com| 18涩涩午夜精品.www| 国产专区欧美精品| 欧美系列在线观看| 久久久噜噜噜久久人人看 | 日韩免费一区二区三区在线播放| 日本韩国视频一区二区| 久久精品视频在线看| 日韩有码一区二区三区| 色哟哟亚洲精品| 国产精品一区二区果冻传媒| 国产亚洲精品7777| 久久99久久久久| 欧美日韩国产综合一区二区| 欧美日韩国产美女| 午夜久久久久久久久| 欧美调教femdomvk| 亚洲日本青草视频在线怡红院| 亚洲第一主播视频| 欧美制服丝袜第一页| 尤物av一区二区| 色女孩综合影院| 裸体歌舞表演一区二区| 欧美日韩国产乱码电影| 一区二区成人在线|