文档介绍:南京大学金陵学院 2010 届毕业设计(论文) -1- 南京大学金陵学院本科毕业论文院系信息科学与工程系专业电子信息科学与技术题目在 FPGA 上设计汉明码的编码器和解码器年级四学号 0880222009 学生姓名房伟指导教师姜乃卓职称讲师论文提交日期 2010 年6月3日南京大学金陵学院 2010 届毕业设计(论文) -2- 摘要本文用 Verilog 语言实现了汉明码的编码和译码。在介绍汉明码编码和译码原理的基础上,设计出了汉明码的编码器和译码器,写出了基于 Verilog 实现的源程序,并通过 modelsim 软件的仿真。关键词: 现场可编程门阵列; verilog ;汉明码南京大学金陵学院 2010 届毕业设计(论文) -3- ABSTRACT This passage realized code and decode of hamming with language of on the theory of introduction of code and decode of hamming,this passage designed coder and decoder of source program was written by verilog language. The soft of modelsim simulated and tested the program. Keywords : fpga; verilog; hamming 南京大学金陵学院 2010 届毕业设计(论文) -4- 目录序言......................................................................................................................... 1 第一章 Modelsim 简介和仿真的基本步骤......................................................... 2 modelsim 简介............................................................................................. 2 modelsim 仿真的基本步骤......................................................................... 2 第二章 Verilog 的基础知识................................................................................. 4 verilog 的主要功能..................................................................................... 4 verilog 基本语法......................................................................................... 4 wire 型和 reg 型................................................................................. 4 initial 模块和 always 模块............................................................. 5 边沿和电平触发事件....................................................................... 5 条件语句........................................................................................... 6 阻塞和非阻塞赋值........................................................................... 6 组合逻辑电路................................................................................... 7