文件名称:spi
介绍说明--下载内容均来自于网络,请自行研究使用
通过SPI接口给一段位宽16位长度为8的配置寄存器进行赋值。位宽为16 表示存储的数据信息位数为16,长度为8,则代表的是寄存器的深度为8。
在输入第一位数据时,定义一个计数器count,以判断目前接收了几个数据。当接收到第8位时,后六位为地址,前两位用于判断,10表示读操作,11表示写操作,进入读写操作后仍需计数,以便判断何时读完或写完,当count=24时为读写操作完毕。(Through the SPI interface to a 16 bit length 8 configuration register assignment. Width 16 digits represent the information stored for 16, length 8, is the representative of the register depth is 8.
When the first bit of data is entered, a counter, count, is defined to determine the number of data received at the present time. When eighth bits are received, the 6 bits are the addresses, the first two bits are used for judgement, 10 is the read operation, 11 is the write operation, and it still needs to count after entering the read and write operation, so as to decide when to read or write, and when count=24 is read and write.)
在输入第一位数据时,定义一个计数器count,以判断目前接收了几个数据。当接收到第8位时,后六位为地址,前两位用于判断,10表示读操作,11表示写操作,进入读写操作后仍需计数,以便判断何时读完或写完,当count=24时为读写操作完毕。(Through the SPI interface to a 16 bit length 8 configuration register assignment. Width 16 digits represent the information stored for 16, length 8, is the representative of the register depth is 8.
When the first bit of data is entered, a counter, count, is defined to determine the number of data received at the present time. When eighth bits are received, the 6 bits are the addresses, the first two bits are used for judgement, 10 is the read operation, 11 is the write operation, and it still needs to count after entering the read and write operation, so as to decide when to read or write, and when count=24 is read and write.)
相关搜索: spi的Verilog语言描述
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
spi\spi.v | 1861 | 2018-01-03 |
spi\tb_spi.v | 1486 | 2017-12-04 |
spi | 0 | 2018-01-03 |