X
xenix
Guest
Bok,
Look up stolovi pojesti previše logike izvor ako je stol je velik.Želim pohraniti neke podatke o blok ovan.Podaci se učitava kao početne vrijednosti za Bram.Ram pisati je onemogućen, tako da će biti kao ROM operacije.
Našto ja pokušati čitati RAM-a, ona uvijek stoji nula, je li nešto u redu s početne vrijednosti zadatak?
INIT_xx su početne vrijednosti vektora.Što su INITP_xx vektori?
Hvala za odgovore.
Šifra:
library IEEE;
korištenje IEEE.STD_LOGIC_1164.ALL;
korištenje IEEE.STD_LOGIC_ARITH.ALL;
korištenje IEEE.STD_LOGIC_UNSIGNED.ALL;entitet acitablo1 je
Port (
modulasyon: u STD_LOGIC_VECTOR (8 downto 0); - ovan adresa
CLK: u STD_LOGIC; - ovan sat
aci1: out STD_LOGIC_VECTOR (13 downto 0) - podaci iz
);
kraj acitablo1;architecture Behavioral of acitablo1 jekomponenta RAMB16_S18
- Pragma translate_off
generic (
INIT: bit_vector: X = "0";
INIT_00: bit_vector: = X "1818181A181D182018241829182D18321838183E1844184A18501856185D1864"; - početne vrijednosti
INIT_01: bit_vector: = X "1846183F18391833182D18281823181F181B1818181618151814181418151816";
INIT_02: bit_vector: = X "183318441852185D1865186B186E1870186F186D186A18651860185A1854184D";
INIT_03: bit_vector: = X "0B060B4B0B900BD4169016C016ED17191743176B179017B217D217EF1809181F";
INIT_04: bit_vector: = X "122A1263129C12D61310134B138513C013FA1435099009C90A040A420A810AC3";
INIT_05: bit_vector: = X "0684069206A006AF06BF0FD806E206F5070A071E07331114114A118111B911F1";
INIT_06: bit_vector: = X "0C4F0C710C94062C062E063106340639063D0643065105EE06590605066D0678";
INIT_07: bit_vector: = X "05C905DA05EA05F70B510B590B630B710B800B930BA80BBF0BD80BF40C110C2F";
INIT_08: bit_vector: = X "01840275030D037E03D904250466049E04D004FC0524054805680584059E05B5";
INIT_09: bit_vector: = X "0756079107D10818086508B9091309100910030C0438003203660258030E00C8";
INIT_0A: bit_vector: = X "04F50514053305520572059205B305D505F8061C06410668069206BE06ED071F";
INIT_0B: bit_vector: = X "0365036E037B038C03A003B703D003EA04050422043F045D047B049904B704D6";
INIT_0C: bit_vector: = X "000000000000000000000644054804BB0457040C03D203A60387037203670363";
INIT_0D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_0E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_0F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_10: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_11: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_12: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_13: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_14: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_15: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_16: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_17: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_18: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_19: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1A: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1B: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1C: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_20: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_21: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_22: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_23: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_24: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_25: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_26: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_27: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_28: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_29: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2A: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2B: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2C: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_30: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_31: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_32: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_33: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_34: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_35: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_36: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_37: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_38: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_39: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3A: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3B: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3C: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_00: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_01: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_02: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_03: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_04: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_05: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_06: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_07: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
SRVAL: bit_vector: X = "0";
WRITE_MODE: string = "READ_FIRST"
);
- Pragma translate_on
port (
DI: u std_logic_vector (15 downto 0);
DIP: u std_logic_vector (1 downto 0);
Adr: u std_logic_vector (9 downto 0);
HR: in std_logic;
WE: in std_logic;
SSR: in std_logic;
CLK: in std_logic;
DO: out std_logic_vector (15 downto 0);
DOP: out std_logic_vector (1 downto 0)
);
end komponente;atribut WRITE_MODE: string;
atribut WRITE_MODE od U_RAMB16_S18: naljepnica "READ_FIRST";signala adr: STD_LOGIC_VECTOR (9 downto 0);
signala di: STD_LOGIC_VECTOR (15 downto 0);
signala umočiti: STD_LOGIC_VECTOR (1 downto 0);
signala do: STD_LOGIC_VECTOR (15 downto 0);
signala DOP: STD_LOGIC_VECTOR (1 downto 0);započetiadr <= "0" & (modulasyon-"011.011.101") - čine ga 10-bitni, uklonite offset i opterećenje na adresu.umočiti <= "00"; - paritet se ne koristi, teret s nula
di <= x "0000"; - pisanje je onemogućen, tako da je to nevažanaci1 <= ne (13 downto 0); - podaci je učitana za izlazU_RAMB16_S18: RAMB16_S18
port map (
DI => di, - umetanje 16 bita podataka u autobus (<15 downto 0>)
DIP => dip, - 2 umetanje bita pariteta podataka u autobus (i <17 downto 16>)
Adr => adr, - umetanje 10 bits adresna sabirnica
EN => '1 ', - omogućiti umetanje signala - uvijek omogućiti
WE => '0 ', - umetanje pisati omogućiti signala - ROM pogon, dont pisati
SSR => '0 ', - umetnuti set / reset signala
CLK => CLK, - umetanje sat signal
DO => napraviti, - umetanje 16 bita podataka iz autobusa (<15 downto 0>)
DOP => DOP - 2 umetanje bita pariteta podataka iz autobusom (ili <17 downto 16>)
);end Behavioral;
Look up stolovi pojesti previše logike izvor ako je stol je velik.Želim pohraniti neke podatke o blok ovan.Podaci se učitava kao početne vrijednosti za Bram.Ram pisati je onemogućen, tako da će biti kao ROM operacije.
Našto ja pokušati čitati RAM-a, ona uvijek stoji nula, je li nešto u redu s početne vrijednosti zadatak?
INIT_xx su početne vrijednosti vektora.Što su INITP_xx vektori?
Hvala za odgovore.
Šifra:
library IEEE;
korištenje IEEE.STD_LOGIC_1164.ALL;
korištenje IEEE.STD_LOGIC_ARITH.ALL;
korištenje IEEE.STD_LOGIC_UNSIGNED.ALL;entitet acitablo1 je
Port (
modulasyon: u STD_LOGIC_VECTOR (8 downto 0); - ovan adresa
CLK: u STD_LOGIC; - ovan sat
aci1: out STD_LOGIC_VECTOR (13 downto 0) - podaci iz
);
kraj acitablo1;architecture Behavioral of acitablo1 jekomponenta RAMB16_S18
- Pragma translate_off
generic (
INIT: bit_vector: X = "0";
INIT_00: bit_vector: = X "1818181A181D182018241829182D18321838183E1844184A18501856185D1864"; - početne vrijednosti
INIT_01: bit_vector: = X "1846183F18391833182D18281823181F181B1818181618151814181418151816";
INIT_02: bit_vector: = X "183318441852185D1865186B186E1870186F186D186A18651860185A1854184D";
INIT_03: bit_vector: = X "0B060B4B0B900BD4169016C016ED17191743176B179017B217D217EF1809181F";
INIT_04: bit_vector: = X "122A1263129C12D61310134B138513C013FA1435099009C90A040A420A810AC3";
INIT_05: bit_vector: = X "0684069206A006AF06BF0FD806E206F5070A071E07331114114A118111B911F1";
INIT_06: bit_vector: = X "0C4F0C710C94062C062E063106340639063D0643065105EE06590605066D0678";
INIT_07: bit_vector: = X "05C905DA05EA05F70B510B590B630B710B800B930BA80BBF0BD80BF40C110C2F";
INIT_08: bit_vector: = X "01840275030D037E03D904250466049E04D004FC0524054805680584059E05B5";
INIT_09: bit_vector: = X "0756079107D10818086508B9091309100910030C0438003203660258030E00C8";
INIT_0A: bit_vector: = X "04F50514053305520572059205B305D505F8061C06410668069206BE06ED071F";
INIT_0B: bit_vector: = X "0365036E037B038C03A003B703D003EA04050422043F045D047B049904B704D6";
INIT_0C: bit_vector: = X "000000000000000000000644054804BB0457040C03D203A60387037203670363";
INIT_0D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_0E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_0F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_10: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_11: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_12: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_13: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_14: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_15: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_16: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_17: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_18: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_19: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1A: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1B: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1C: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_1F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_20: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_21: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_22: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_23: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_24: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_25: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_26: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_27: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_28: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_29: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2A: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2B: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2C: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_2F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_30: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_31: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_32: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_33: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_34: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_35: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_36: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_37: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_38: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_39: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3A: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3B: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3C: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3D: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3E: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INIT_3F: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_00: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_01: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_02: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_03: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_04: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_05: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_06: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
INITP_07: bit_vector: = X "0000000000000000000000000000000000000000000000000000000000000000";
SRVAL: bit_vector: X = "0";
WRITE_MODE: string = "READ_FIRST"
);
- Pragma translate_on
port (
DI: u std_logic_vector (15 downto 0);
DIP: u std_logic_vector (1 downto 0);
Adr: u std_logic_vector (9 downto 0);
HR: in std_logic;
WE: in std_logic;
SSR: in std_logic;
CLK: in std_logic;
DO: out std_logic_vector (15 downto 0);
DOP: out std_logic_vector (1 downto 0)
);
end komponente;atribut WRITE_MODE: string;
atribut WRITE_MODE od U_RAMB16_S18: naljepnica "READ_FIRST";signala adr: STD_LOGIC_VECTOR (9 downto 0);
signala di: STD_LOGIC_VECTOR (15 downto 0);
signala umočiti: STD_LOGIC_VECTOR (1 downto 0);
signala do: STD_LOGIC_VECTOR (15 downto 0);
signala DOP: STD_LOGIC_VECTOR (1 downto 0);započetiadr <= "0" & (modulasyon-"011.011.101") - čine ga 10-bitni, uklonite offset i opterećenje na adresu.umočiti <= "00"; - paritet se ne koristi, teret s nula
di <= x "0000"; - pisanje je onemogućen, tako da je to nevažanaci1 <= ne (13 downto 0); - podaci je učitana za izlazU_RAMB16_S18: RAMB16_S18
port map (
DI => di, - umetanje 16 bita podataka u autobus (<15 downto 0>)
DIP => dip, - 2 umetanje bita pariteta podataka u autobus (i <17 downto 16>)
Adr => adr, - umetanje 10 bits adresna sabirnica
EN => '1 ', - omogućiti umetanje signala - uvijek omogućiti
WE => '0 ', - umetanje pisati omogućiti signala - ROM pogon, dont pisati
SSR => '0 ', - umetnuti set / reset signala
CLK => CLK, - umetanje sat signal
DO => napraviti, - umetanje 16 bita podataka iz autobusa (<15 downto 0>)
DOP => DOP - 2 umetanje bita pariteta podataka iz autobusom (ili <17 downto 16>)
);end Behavioral;