Chào các bác, em tạo một con ROM bằgn coregen của ise mà ko sao khởi tạo được giá trị từ file *.mif. Cụ thể là tạo ROM xong, modify cái file *.mif, khai báo component ROM trong achitecture, thêm hai dòng "attribute syn_black_box : boolean;
attribute syn_black_box of ram: component is true;" rồi copile mà ko được. code của em đây:
Các bác giúp hộ em với, tiện thể viết tutorial về coregen luôn.
attribute syn_black_box of ram: component is true;" rồi copile mà ko được. code của em đây:
Code:
achitecture bhv of test[INDENT]component rom
port (
a: IN std_logic_VECTOR(7 downto 0);
spo: OUT std_logic_VECTOR(7 downto 0));
end component;[/INDENT]
-- Synplicity black box declaration
attribute syn_black_box : boolean;
attribute syn_black_box of rom: component is true;
begin
rom:port map(address,data);
end bhv;

...