|
|
| | -文章搜索 - 最新文章 - | |
将16进制转化为std_logic |
| 发布时间:2006年8月5日 点击次数:1009 |
| 来源: 作者: |
This example shows how to convert a hexadecimal value to a std_logic_vector. It is shown in both VHDL ''87 (IEEE Std 1076-1987) and VHDL ''93 (IEEE Std 1076-1993). For more information on using this example in your project, go to: http://www.fpga.com.cn hex.vhd LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.std_logic_arith.ALL; ENTITY hex IS PORT( D : OUT STD_LOGIC_VECTOR(7 DOWNTO 0)); END hex; ARCHITECTURE a OF hex IS BEGIN -- The following line will convert the hex value -- to a STD_LOGIC_VECTOR in VHDL ''87. D(7 DOWNTO 0) <= to_stdlogicvector(x"FC"); -- The following line will work in VHDL ''93 (the standard allows -- this conversion implicitly). -- D <= x"FC"; END a; |
|
|
|
|
[EDA/IC设计] 相关文章: 带莫尔/米勒输出的状态机简介:
-- State Machine with Moore and Mealy outputs -- dowload from: www.fpga.com.cn & www.pld.com.cn library ieee; use ieee.std_logic_1164.all; entity mealy1 is port( clk, rst: in std_logic; &nbs...... 共创时间同步协议解决方案,飞思卡尔与IXXAT携手同进
嵌入式逻辑分析仪在FPGA设计中的应用
Geomagic 扩大在中国的经营:上海分公司成立
基于FPGA流水线分布式算法的FIR滤波器的实现(转)
赛普拉斯PSoC器件获青睐
ASIC设计中验证工具选择实例
[转载]基于CPLD的串并转换和高速USB通信设计
[转载]基于CPLD的容错存储器的设计实现
Protel 2004小知识 (转) |
|
|
|