type data_buffer is array(0 to 8)of std_logic_vector(7 downto 0);
constant data_buf1:data_buffer:=(x"b5",x"b1",x"c7",x"b0",x"ca",x"b1", x"bc",x"e4",x"3a");
constant data_buf2:data_buffer:=(x"d0",x"d0",x"ca",x"bb",x"c2",x"b7",x"b3",x"cc",x"3a");
constant data_buf3:data_buffer:=(x"b5",x"c8",x"b4",x"fd",x"ca",x"b1",x"bc",x"e4",x"3a");
constant data_buf4:data_buffer:=(x"a6",x"e0",x"d7",x"dc",x"b7",x"d1",x"d3",x"c3",x"3a");
定义一个data_buffer类型, 9 x 8-bit,
定义 data_buf1,data_buf2,data_buf3,data_buf4 常量为data_buffer类型,并赋值
type data_buffer1 is array(0 to 1)of std_logic_vector(7 downto 0);
constant data_buf5:data_buffer1:=(x"a6",x"e0");
定义一个data_buffer1类型, 2 x 8-bit,
定义 data_buf5 常量为data_buffer1类型,并赋值
type data_buffer2 is array(0 to 3)of std_logic_vector(7 downto 0);
constant data_buf6:data_buffer2:=(x"b9",x"ab",x"c0",x"ef");
constant data_buf7:data_buffer2:=(x"b7",x"d6",x"d6",x"d3");
constant data_buf8:data_buffer2:=(x"d4",x"aa",x"a6",x"e0");
定义一个data_buffer2类型, 9 x 8-bit,
定义 data_buf6,data_buf7,data_buf8 常量为data_buffer2类型,并赋值
x"d4" : 16进制 D4