📄 parity.vhd
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date: 21:31:07 12/18/2008 -- Design Name: -- Module Name: parity - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------ -------------------------------------------------------
-- Design Name : parity_using_assign
-- File Name : parity_using_assign.vhd
-- Function : Parity using direct assignment
-- Coder : Deepak Kumar Tala (Verilog)
-- Translator : Alexander H Pham (VHDL)
-------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
entity parity_using_assign is
port (
data_in :in std_logic_vector (7 downto 0);
parity_out :out std_logic
);
end entity;
architecture rtl of parity_using_assign is
begin
parity_out <= (data_in(0) xor data_in(1)) xor
(data_in(2) xor data_in(3)) xor
(data_in(4) xor data_in(5)) xor
(data_in(6) xor data_in(7));
end architecture;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -