- 20
- 0
- 约4.87千字
- 约 10页
- 2016-08-06 发布于湖北
- 举报
格雷码和二进制的相互转换-vhdl程序研讨
1. B2G_converter
1) Screenshot of iSim simulation results:
note: from the beginning point at 1,000ns, input(i5binary) changes every other 50ns
a) i5binary input from 0 to 6
i5binary
o5graycode
Delay of output (ns)
00000
00000
6.691
00001
00001
6.516
00010
00011
6.517
00011
00010
6.516
00100
00110
6.580
00101
00111
6.516
00110
00101
6.517
b) i5binary input from 7 to 13
i5binary
o5graycode
Delay of output (ns)
00111
00100
6.516
01000
01100
6.197
01001
01101
6.516
01010
01111
6.517
01011
01110
6.516
01100
01010
6.580
01101
01011
6.516
c) i5binary input from 14 to 20
i5binary
o5graycode
Delay of output (ns)
01110
01001
6.517
01111
01000
6.516
10000
11000
5.210
10001
11001
6.516
10010
11011
6.517
10011
11010
6.516
10100
11110
6.580
d) i5binary input from 21 to 27
i5binary
o5graycode
Delay of output (ns)
10101
11111
6.516
10110
11101
6.517
10111
11100
6.516
11000
10100
6.197
11001
10101
6.516
11010
10111
6.517
11011
10110
6.516
e) i5binary input from 28 to 31
i5binary
o5graycode
Delay of output (ns)
11100
10010
6.580
11101
10011
6.516
11110
10001
6.517
11111
10000
6.516
2) VHDL for Binary-to-Gray-Code converter:
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 13:02:37 09/15/2015
-- Design Name:
-- Module Name: b2g_converter - 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;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--use IEEE.NUMERIC_STD.ALL;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity b2g_converter is
Port ( i5Binary : in STD_LOGIC_VECTOR (4
您可能关注的文档
- 材料物理与性能-2-第2章-固体能带理论研讨.ppt
- 材料科学与工程专业概论研讨.doc
- 材料科学基础名词解析大全研讨.docx
- 材料科学基础—大工—名词研讨.doc
- 材料科学基础_二元系相图及其合金凝固1.3_二元包晶相图研讨.ppt
- 材料科学基础重点研讨.docx
- 材料第三讲研讨.ppt
- 材料表征分析技术-7-化学成分分析EPMA-2014研讨.pptx
- 材料设计理论与方法习题研讨.docx
- 杜比加载XML文件研讨.doc
- 广东省广州省实验中学教育集团2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州大学附属中学2025-2026学年八年级上学期奥班期中物理试题(解析版).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(含答案).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(解析版).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 2026《中国人寿上海分公司营销员培训体系优化研究》18000字.docx
- 《生物探究性实验教学》中小学教师资格模拟试题.docx
原创力文档

文档评论(0)