⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crc7generator.vhd

📁 实现了SD的SPI模式,通过了所有的仿真及测试,支持数据的读和写.对SD卡的SPI模式的绝大多数命令都支持.
💻 VHD
字号:
library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use work.PCK_CRC7_D1.all;entity CRC7Generator is	port(		TestData:in std_logic;		Hold:in std_logic;		Clock:in std_logic;		Rst:in std_logic;		CRC:out std_logic_vector(6 downto 0)	);end entity;architecture behave of CRC7Generator issignal next_crc:std_logic_vector(6 downto 0);signal current_crc:std_logic_vector(6 downto 0);begin	process(Hold, next_crc, TestData, current_crc)	begin		if Hold='0' then			next_crc<=nextCRC7_D1(TestData,current_crc);		else			next_crc<=current_crc;		end if;	end process;		process(Rst, Clock)	begin		if Rst='1' then			current_crc<=(others=>'0');		elsif Clock='1' and Clock'event then			current_crc<=next_crc;		end if;	end process;		CRC<=current_crc;end architecture;		

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -