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

📄 rs_enc_m8.vhd

📁 RS编码的某个校验符 RS编码的某个校验符
💻 VHD
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    16:32:31 10/22/2007 -- Design Name: -- Module Name:    rs_enc_m8 - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;---- Uncomment the following library declaration if instantiating---- any Xilinx primitives in this code.--library UNISIM;--use UNISIM.VComponents.all;entity rs_enc_m8 is    Port ( x : in  STD_LOGIC_VECTOR (7 downto 0);           y : out  STD_LOGIC_VECTOR (7 downto 0));end rs_enc_m8;architecture Behavioral of rs_enc_m8 is--signal z : STD_LOGIC_VECTOR (7 downto 0);begin  process(x)    begin	 	y(0) <= x(0) XOR x(1) XOR x(6);		y(1) <= x(2) XOR x(6) XOR x(7);		y(2) <= x(0) XOR x(1) XOR x(3) XOR x(6) XOR x(7);		y(3) <= x(1) XOR x(2) XOR x(4) XOR x(7);		y(4) <= x(2) XOR x(3) XOR x(5);		y(5) <= x(3) XOR x(4) XOR x(6);		y(6) <= x(0) XOR x(4) XOR x(5) XOR x(7);		y(7) <= x(0) XOR x(5);		--y<=z;  end process;end Behavioral;

⌨️ 快捷键说明

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