12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- ----------------------------------------------------------------------------------
- -- Company:
- -- Engineer:
- --
- -- Create Date: 16.04.2021 14:35:04
- -- Design Name:
- -- Module Name: MemoireInstructions - Behavioral
- -- Project Name:
- -- Target Devices:
- -- Tool Versions:
- -- Description:
- --
- -- Dependencies:
- --
- -- Revision:
- -- Revision 0.01 - File Created
- -- Additional Comments:
- --
- ----------------------------------------------------------------------------------
-
-
- library IEEE;
- use IEEE.STD_LOGIC_1164.ALL;
-
- -- Uncomment the following library declaration if using
- -- arithmetic functions with Signed or Unsigned values
- use IEEE.NUMERIC_STD.ALL;
-
- -- Uncomment the following library declaration if instantiating
- -- any Xilinx leaf cells in this code.
- --library UNISIM;
- --use UNISIM.VComponents.all;
-
- entity MemoireInstructions is
- Generic (Nb_bits : Natural;
- Addr_size : Natural;
- Mem_size : Natural);
- Port ( Addr : in STD_LOGIC_VECTOR (Addr_size-1 downto 0);
- D_OUT : out STD_LOGIC_VECTOR (Nb_bits-1 downto 0) := (others => '0'));
- end MemoireInstructions;
-
- architecture Behavioral of MemoireInstructions is
- signal MEMORY : STD_LOGIC_VECTOR ((Mem_Size * Nb_bits)-1 downto 0) := "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010100000000000000000000000010001000000000000000000000000010100000000000010100000000001001100011011000101000000000001011000010100000000100000000010010000000000001010000000000111000010100000000100000000001001000000100000000000000000101010000001100000000000000000111101101101000000000000000001000000000010000000000000000000010000000000000000000000000100100000000000000010000000001000000000000000000100000000101010000000100000000000000001000100000000000000000000000001001000000000101010100000000101010000000100000000000000001000100000000000000000000000001001000000001010101000000000100000111101000000000000000000001100000010000000100000000000101000000000000000000000000010010000000000000101000000000100000000000000000010000000001000000000010000000000000000010010000000000000000000000000111101010011000000000000000001000000000010000000000000000000010000000000000000000000000100100000000000000010000000001000000000000000000100000000010100000000100001010000000000110100000000000000000000000001010000000000000101100000000100110000000100010101000000000101100001100000000110000000001011000010110000000100000000010110000101000000000000000000000100000001000000110000000101010000000110000110000000000000100000000100000000000000010100100000000000000010000000001110000011000000001100000000010010000001100000000000000000100000000001000000000000000010000011010000000000000000000000110000001100000011000000010010100000001000000010000001001001000000100000101000000000010000000000100000000000000000100100000000000000000000000010100000000000000000000000000010110000010000000010000000000101100000011000000110000000001011000000100000000000000000010110000000000000001000000000100000000001000000100000000001011000001010000000100000000010000000001000000011000000000111100100010000000000000000001000000000000000001000000000000010000001000000010000000010100100000001000000010000000001000000000100000000000000000010100000000000000010000000000101100000111000000000000000001111010000000000000000000000010000000001100000001000000000110000000001000000010000000000001000000010000001000000001010100000001000000110000000000101100000100000000100000000000010000000010000000000000001010010000000000000001000000000111000000110000000000000000001001000000000000000000000000010000000000100000011000000000101000000011000000100000000010000010000000000000000000000000110000001100000011000000100101100000110000000110000000000110000000100000001000000001010000000000100000000000000000101000000000000000110000000001100000000100000001000000000000010000001000000001000000100101000000001000001010000000000010000000100000001100000010010010000001100000001000000000111000000101000000110000000001001000000110000000000000000010000000001000000000000000000101000000000000000100000000010000010001110000000000000000000110000000000000000000000100101100000010000000000000000000101000000100000001000000001010000000000100000011000000000101100000011000000010000000001010000000110000000100000000010000000001000000000000000000100100000001000000000000000001001000000000000000000000000101000000000000000000000000000101100000010000000100000000001011000000010000000100000000010110000000000000000000000000100000000000000000010000000001000000000010000000000000000010000000000000000001000000001001000000001000000000000000010101000011110000000000000000011110000010100000000000000000100000000000000000010000000000001000000010000000100000010010010000001000000001000000000100000000001000000000000000010101000000010000000000000000100010000000100000000000000000100100000001111111110000000010101000000010000000000000000100010000000100000000000000000100100000001000000000000000010000000100100000000000000000000110000001100000011000000010010100000001000000010000001001001000000100000010100000000010000000000100000000000000000100100000000000000000000000001111010011110000000000000000";
- begin
- D_OUT <= MEMORY (((to_integer(unsigned(Addr)) + 1) * Nb_bits) - 1 downto Nb_bits * to_integer(unsigned(Addr)));
- end Behavioral;
|