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

📄 hamming.fit.eqn

📁 一个vhdl实现的hamming码编码器
💻 EQN
字号:
-- Copyright (C) 1991-2005 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions 
-- and other software and tools, and its AMPP partner logic 
-- functions, and any output files any of the foregoing 
-- (including device programming or simulation files), and any 
-- associated documentation or information are expressly subject 
-- to the terms and conditions of the Altera Program License 
-- Subscription Agreement, Altera MegaCore Function License 
-- Agreement, or other applicable license agreement, including, 
-- without limitation, that your use is for the sole purpose of 
-- programming logic devices manufactured by Altera and sold by 
-- Altera or its authorized distributors.  Please refer to the 
-- applicable agreement for further details.
--A1L86 is p~101 at LC3_A46
--operation mode is normal

A1L86 = data_in[6] $ data_in[0] $ data_in[3];

--A1L27 is p~105 at LC3_A46
--operation mode is normal

A1L27 = data_in[6] $ data_in[0] $ data_in[3];


--A1L56 is p~2 at LC6_A46
--operation mode is normal

A1L56 = A1L86 $ data_in[1] $ data_in[4];

--A1L37 is p~106 at LC6_A46
--operation mode is normal

A1L37 = A1L86 $ data_in[1] $ data_in[4];


--data_ham[0]$latch is data_ham[0]$latch at LC1_A46
--operation mode is normal

data_ham[0]$latch = choice & (data_ham[0]$latch) # !choice & A1L56;

--A1L91 is data_ham[0]$latch~3 at LC1_A46
--operation mode is normal

A1L91 = choice & (data_ham[0]$latch) # !choice & A1L56;


--A1L66 is p~6 at LC7_A46
--operation mode is normal

A1L66 = A1L86 $ data_in[2] $ data_in[5];

--A1L47 is p~107 at LC7_A46
--operation mode is normal

A1L47 = A1L86 $ data_in[2] $ data_in[5];


--data_ham[1]$latch is data_ham[1]$latch at LC2_A46
--operation mode is normal

data_ham[1]$latch = choice & (data_ham[1]$latch) # !choice & A1L66;

--A1L22 is data_ham[1]$latch~3 at LC2_A46
--operation mode is normal

A1L22 = choice & (data_ham[1]$latch) # !choice & A1L66;


--data_ham[2]$latch is data_ham[2]$latch at LC4_A46
--operation mode is normal

data_ham[2]$latch = choice & (data_ham[2]$latch) # !choice & data_in[0];

--A1L52 is data_ham[2]$latch~3 at LC4_A46
--operation mode is normal

A1L52 = choice & (data_ham[2]$latch) # !choice & data_in[0];


--A1L96 is p~102 at LC2_B52
--operation mode is normal

A1L96 = data_in[1] $ data_in[2] $ data_in[3] $ data_in[7];

--A1L57 is p~108 at LC2_B52
--operation mode is normal

A1L57 = data_in[1] $ data_in[2] $ data_in[3] $ data_in[7];


--data_ham[3]$latch is data_ham[3]$latch at LC1_B52
--operation mode is normal

data_ham[3]$latch = choice & (data_ham[3]$latch) # !choice & A1L96;

--A1L82 is data_ham[3]$latch~3 at LC1_B52
--operation mode is normal

A1L82 = choice & (data_ham[3]$latch) # !choice & A1L96;


--data_ham[4]$latch is data_ham[4]$latch at LC4_B48
--operation mode is normal

data_ham[4]$latch = choice & (data_ham[4]$latch) # !choice & data_in[1];

--A1L13 is data_ham[4]$latch~3 at LC4_B48
--operation mode is normal

A1L13 = choice & (data_ham[4]$latch) # !choice & data_in[1];


--data_ham[5]$latch is data_ham[5]$latch at LC8_B43
--operation mode is normal

data_ham[5]$latch = choice & (data_ham[5]$latch) # !choice & data_in[2];

--A1L43 is data_ham[5]$latch~3 at LC8_B43
--operation mode is normal

A1L43 = choice & (data_ham[5]$latch) # !choice & data_in[2];


--data_ham[6]$latch is data_ham[6]$latch at LC3_B37
--operation mode is normal

data_ham[6]$latch = choice & (data_ham[6]$latch) # !choice & data_in[3];

--A1L73 is data_ham[6]$latch~3 at LC3_B37
--operation mode is normal

A1L73 = choice & (data_ham[6]$latch) # !choice & data_in[3];


--A1L76 is p~12 at LC4_B52
--operation mode is normal

A1L76 = data_in[6] $ data_in[4] $ data_in[5] $ data_in[7];

--A1L67 is p~109 at LC4_B52
--operation mode is normal

A1L67 = data_in[6] $ data_in[4] $ data_in[5] $ data_in[7];


--data_ham[7]$latch is data_ham[7]$latch at LC7_B52
--operation mode is normal

data_ham[7]$latch = choice & (data_ham[7]$latch) # !choice & A1L76;

--A1L04 is data_ham[7]$latch~3 at LC7_B52
--operation mode is normal

A1L04 = choice & (data_ham[7]$latch) # !choice & A1L76;


--data_ham[8]$latch is data_ham[8]$latch at LC4_D52
--operation mode is normal

data_ham[8]$latch = choice & (data_ham[8]$latch) # !choice & data_in[4];

--A1L34 is data_ham[8]$latch~3 at LC4_D52
--operation mode is normal

A1L34 = choice & (data_ham[8]$latch) # !choice & data_in[4];


--data_ham[9]$latch is data_ham[9]$latch at LC6_D43
--operation mode is normal

data_ham[9]$latch = choice & (data_ham[9]$latch) # !choice & data_in[5];

--A1L64 is data_ham[9]$latch~3 at LC6_D43
--operation mode is normal

A1L64 = choice & (data_ham[9]$latch) # !choice & data_in[5];


--data_ham[10]$latch is data_ham[10]$latch at LC3_E39
--operation mode is normal

data_ham[10]$latch = choice & (data_ham[10]$latch) # !choice & data_in[6];

--A1L94 is data_ham[10]$latch~3 at LC3_E39
--operation mode is normal

A1L94 = choice & (data_ham[10]$latch) # !choice & data_in[6];


--data_ham[11]$latch is data_ham[11]$latch at LC5_B31
--operation mode is normal

data_ham[11]$latch = choice & (data_ham[11]$latch) # !choice & data_in[7];

--A1L25 is data_ham[11]$latch~3 at LC5_B31
--operation mode is normal

A1L25 = choice & (data_ham[11]$latch) # !choice & data_in[7];


--A1L07 is p~103 at LC5_B52
--operation mode is normal

A1L07 = data_in[4] $ data_in[5] $ data_in[7];

--A1L77 is p~110 at LC5_B52
--operation mode is normal

A1L77 = data_in[4] $ data_in[5] $ data_in[7];


--A1L17 is p~104 at LC6_B52
--operation mode is normal

A1L17 = data_in[1] $ data_in[2] $ data_in[0] $ A1L07;

--A1L87 is p~111 at LC6_B52
--operation mode is normal

A1L87 = data_in[1] $ data_in[2] $ data_in[0] $ A1L07;


--data_ham[12]$latch is data_ham[12]$latch at LC3_B52
--operation mode is normal

data_ham[12]$latch = choice & (data_ham[12]$latch) # !choice & A1L17;

--A1L55 is data_ham[12]$latch~3 at LC3_B52
--operation mode is normal

A1L55 = choice & (data_ham[12]$latch) # !choice & A1L17;


--A1L59 is s~150 at LC4_L48
--operation mode is normal

A1L59 = data_check[4] $ data_check[10] $ data_check[2] $ data_check[6];

--A1L501 is s~160 at LC4_L48
--operation mode is normal

A1L501 = data_check[4] $ data_check[10] $ data_check[2] $ data_check[6];


--A1L69 is s~151 at LC6_L48
--operation mode is normal

A1L69 = A1L59 $ data_check[0] $ data_check[8];

--A1L601 is s~161 at LC6_L48
--operation mode is normal

A1L601 = A1L59 $ data_check[0] $ data_check[8];


--s[0]$latch is s[0]$latch at LC5_L48
--operation mode is normal

s[0]$latch = choice & A1L69 # !choice & (s[0]$latch);

--A1L28 is s[0]$latch~3 at LC5_L48
--operation mode is normal

A1L28 = choice & A1L69 # !choice & (s[0]$latch);


--A1L79 is s~152 at LC7_L48
--operation mode is normal

A1L79 = data_check[9] $ data_check[1] $ data_check[5];

--A1L701 is s~162 at LC7_L48
--operation mode is normal

A1L701 = data_check[9] $ data_check[1] $ data_check[5];


--A1L89 is s~153 at LC2_L48
--operation mode is normal

A1L89 = A1L79 $ data_check[10] $ data_check[2] $ data_check[6];

--A1L801 is s~163 at LC2_L48
--operation mode is normal

A1L801 = A1L79 $ data_check[10] $ data_check[2] $ data_check[6];


--s[1]$latch is s[1]$latch at LC4_L43
--operation mode is normal

s[1]$latch = choice & A1L89 # !choice & (s[1]$latch);

--A1L58 is s[1]$latch~3 at LC4_L43
--operation mode is normal

A1L58 = choice & A1L89 # !choice & (s[1]$latch);


--A1L99 is s~154 at LC2_L45
--operation mode is normal

A1L99 = data_check[11] $ data_check[3];

--A1L901 is s~164 at LC2_L45
--operation mode is normal

A1L901 = data_check[11] $ data_check[3];


--A1L001 is s~155 at LC3_L48
--operation mode is normal

A1L001 = data_check[5] $ A1L99 $ data_check[6] $ data_check[4];

--A1L011 is s~165 at LC3_L48
--operation mode is normal

A1L011 = data_check[5] $ A1L99 $ data_check[6] $ data_check[4];


--s[2]$latch is s[2]$latch at LC5_A46
--operation mode is normal

s[2]$latch = choice & A1L001 # !choice & (s[2]$latch);

--A1L88 is s[2]$latch~3 at LC5_A46
--operation mode is normal

A1L88 = choice & A1L001 # !choice & (s[2]$latch);


--A1L101 is s~156 at LC3_L45
--operation mode is normal

A1L101 = data_check[9] $ data_check[11];

--A1L111 is s~166 at LC3_L45
--operation mode is normal

A1L111 = data_check[9] $ data_check[11];


--A1L201 is s~157 at LC4_L45
--operation mode is normal

A1L201 = data_check[10] $ data_check[8] $ A1L101 $ data_check[7];

--A1L211 is s~167 at LC4_L45
--operation mode is normal

A1L211 = data_check[10] $ data_check[8] $ A1L101 $ data_check[7];


--s[3]$latch is s[3]$latch at LC1_L45
--operation mode is normal

s[3]$latch = choice & A1L201 # !choice & (s[3]$latch);

--A1L19 is s[3]$latch~3 at LC1_L45
--operation mode is normal

A1L19 = choice & A1L201 # !choice & (s[3]$latch);


--A1L301 is s~158 at LC8_L48
--operation mode is normal

A1L301 = A1L79 $ data_check[7] $ A1L99 $ data_check[12];

--A1L311 is s~168 at LC8_L48
--operation mode is normal

A1L311 = A1L79 $ data_check[7] $ A1L99 $ data_check[12];


--A1L401 is s~159 at LC1_L48
--operation mode is normal

A1L401 = A1L59 $ data_check[0] $ data_check[8] $ A1L301;

--A1L411 is s~169 at LC1_L48
--operation mode is normal

A1L411 = A1L59 $ data_check[0] $ data_check[8] $ A1L301;


--s[4]$latch is s[4]$latch at LC5_L12
--operation mode is normal

s[4]$latch = choice & A1L401 # !choice & (s[4]$latch);

--A1L49 is s[4]$latch~3 at LC5_L12
--operation mode is normal

A1L49 = choice & A1L401 # !choice & (s[4]$latch);


--data_in[6] is data_in[6] at PIN_74
--operation mode is input

data_in[6] = INPUT();


--data_in[0] is data_in[0] at PIN_67
--operation mode is input

data_in[0] = INPUT();


--data_in[3] is data_in[3] at PIN_70
--operation mode is input

data_in[3] = INPUT();


--data_in[1] is data_in[1] at PIN_68
--operation mode is input

data_in[1] = INPUT();


--data_in[4] is data_in[4] at PIN_71
--operation mode is input

data_in[4] = INPUT();


--choice is choice at PIN_93
--operation mode is input

choice = INPUT();


--data_in[2] is data_in[2] at PIN_69
--operation mode is input

data_in[2] = INPUT();


--data_in[5] is data_in[5] at PIN_73
--operation mode is input

data_in[5] = INPUT();


--data_in[7] is data_in[7] at PIN_75
--operation mode is input

data_in[7] = INPUT();


--data_check[4] is data_check[4] at PIN_99
--operation mode is input

data_check[4] = INPUT();


--data_check[10] is data_check[10] at PIN_58
--operation mode is input

data_check[10] = INPUT();


--data_check[2] is data_check[2] at PIN_96
--operation mode is input

data_check[2] = INPUT();


--data_check[6] is data_check[6] at PIN_54
--operation mode is input

data_check[6] = INPUT();


--data_check[0] is data_check[0] at PIN_94
--operation mode is input

data_check[0] = INPUT();


--data_check[8] is data_check[8] at PIN_56
--operation mode is input

data_check[8] = INPUT();


--data_check[9] is data_check[9] at PIN_57
--operation mode is input

data_check[9] = INPUT();


--data_check[1] is data_check[1] at PIN_95
--operation mode is input

data_check[1] = INPUT();


--data_check[5] is data_check[5] at PIN_53
--operation mode is input

data_check[5] = INPUT();


--data_check[11] is data_check[11] at PIN_60
--operation mode is input

data_check[11] = INPUT();


--data_check[3] is data_check[3] at PIN_97
--operation mode is input

data_check[3] = INPUT();


--data_check[7] is data_check[7] at PIN_55
--operation mode is input

data_check[7] = INPUT();


--data_check[12] is data_check[12] at PIN_61
--operation mode is input

data_check[12] = INPUT();


--data_ham[0] is data_ham[0] at PIN_7
--operation mode is output

data_ham[0] = OUTPUT(data_ham[0]$latch);


--data_ham[1] is data_ham[1] at PIN_8
--operation mode is output

data_ham[1] = OUTPUT(data_ham[1]$latch);


--data_ham[2] is data_ham[2] at PIN_9
--operation mode is output

data_ham[2] = OUTPUT(data_ham[2]$latch);


--data_ham[3] is data_ham[3] at PIN_11
--operation mode is output

data_ham[3] = OUTPUT(data_ham[3]$latch);


--data_ham[4] is data_ham[4] at PIN_12
--operation mode is output

data_ham[4] = OUTPUT(data_ham[4]$latch);


--data_ham[5] is data_ham[5] at PIN_13
--operation mode is output

data_ham[5] = OUTPUT(data_ham[5]$latch);


--data_ham[6] is data_ham[6] at PIN_14
--operation mode is output

data_ham[6] = OUTPUT(data_ham[6]$latch);


--data_ham[7] is data_ham[7] at PIN_15
--operation mode is output

data_ham[7] = OUTPUT(data_ham[7]$latch);


--data_ham[8] is data_ham[8] at PIN_17
--operation mode is output

data_ham[8] = OUTPUT(data_ham[8]$latch);


--data_ham[9] is data_ham[9] at PIN_18
--operation mode is output

data_ham[9] = OUTPUT(data_ham[9]$latch);


--data_ham[10] is data_ham[10] at PIN_24
--operation mode is output

data_ham[10] = OUTPUT(data_ham[10]$latch);


--data_ham[11] is data_ham[11] at PIN_25
--operation mode is output

data_ham[11] = OUTPUT(data_ham[11]$latch);


--data_ham[12] is data_ham[12] at PIN_26
--operation mode is output

data_ham[12] = OUTPUT(data_ham[12]$latch);


--s[0] is s[0] at PIN_111
--operation mode is output

s[0] = OUTPUT(s[0]$latch);


--s[1] is s[1] at PIN_112
--operation mode is output

s[1] = OUTPUT(s[1]$latch);


--s[2] is s[2] at PIN_113
--operation mode is output

s[2] = OUTPUT(s[2]$latch);


--s[3] is s[3] at PIN_114
--operation mode is output

s[3] = OUTPUT(s[3]$latch);


--s[4] is s[4] at PIN_115
--operation mode is output

s[4] = OUTPUT(s[4]$latch);


⌨️ 快捷键说明

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