Blogroll仍在进行中
- 如果您是从事FPGA或嵌入式设计
- 如果您的原创Blog主要用于
.....记录技术经验
.....发表原创文章
.....发表外文翻译
- 如果您也想交换链接
那么当您提交《申请链接表单》后,我会将您的网站添加到友情链接的Blogroll栏目中。
- 首次尝试接受10位朋友的申请 --> 还有5个名额哦
- 仅接受相关技术站点
- 暂不接受商业站点
- 仅提供文字链接
- 如果您的原创Blog主要用于
.....记录技术经验
.....发表原创文章
.....发表外文翻译
- 如果您也想交换链接
那么当您提交《申请链接表单》后,我会将您的网站添加到友情链接的Blogroll栏目中。
- 首次尝试接受10位朋友的申请 --> 还有5个名额哦
- 仅接受相关技术站点
- 暂不接受商业站点
- 仅提供文字链接
ISE9.1
Tip - 控制XST插入buffer的方法





--------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity endian_2 is
end endian_2;
architecture Behavioral of endian_2 is
constant C_OPB_AWIDTH : integer := 32;
signal temp1 : std_logic_vector(31 downto 0) := x"9999_9999"; --1001,1001,...
signal temp2 : std_logic_vector(0 to 31) := x"5555_5555"; --...,0101,0101
signal result1 : std_logic_vector(2 downto 0);
signal result2 : std_logic_vector(2 downto 0);
subtype ADDR_CHK1 is natural range C_OPB_AWIDTH-3 downto C_OPB_AWIDTH-5; --29,28,27 bit
subtype ADDR_CHK2 is natural range C_OPB_AWIDTH-5 to C_OPB_AWIDTH-3; --27,28,29
bit
begin
result1 <= temp1(ADDR_CHK1);--should be 01,1
result2 <= temp2(ADDR_CHK2);--should be 1,01
end Behavioral;
subtype natural is integer range 0 to integer'high; --(2^31 - 1)
subtype positive is integer range 1 to integer'high; --(2^31 - 1)