摘要: C语言允许我们定义有符号数和无符号数,例如一个字节的存储空间,我们可以定义成unsigned char,也可以定义成signedchar,但是你知道它们的区别吗?你知道它们是怎样被存储,又怎样被区分处理吗?1.有符号数和无符号数的存储 对于一个字节的存储单元unsigned char的范围为(... 阅读全文
posted @ 2013-05-18 22:46 amanlikethis 阅读(3288) 评论(0) 推荐(0) 编辑
摘要: 双向端口的VHDL程序如下:library ieee;use ieee.std_logic_1164.all;entity in_out isport(en :in std_logic; data :in std_logic; q :inout std_logic; result:out std_logic );end in_out;architecture behave of in_out isbegin process(en,data,q) begin if (en = '1') then q <= data; ... 阅读全文
posted @ 2013-05-18 22:42 amanlikethis 阅读(258) 评论(0) 推荐(0) 编辑