Jumi

Members
  • Gesamte Inhalte

    9
  • Benutzer seit

  • Letzter Besuch


Ansehen in der Community

0 Neutral

Über Jumi

  • Rang
    ist neu hier

Jumi's Aktivitäten

  1. Jumi hat den im Thema hinzugefügt: Task 5 & 6 2018W   

    könnte jemand kurz helfen
    RAM_beh.vhdl
    desc_158_Task5.pdf
    _________________________

    Your submitted behavior file does not behave like specified in the task description:
    The upper half of input is not written to the memory correctly when en_write is only enabled.
    ____________________
    library IEEE;
    use IEEE.STD_LOGIC_1164.all;
    use IEEE.Numeric_Std.all;
    architecture Behavioral of RAM is
        constant WORD_SIZE : natural := 12;
        constant RAM_SIZE  : natural := 2**6;
        
        constant HIGH_IMP  : std_logic_vector(WORD_SIZE-1 downto 0) := (others => 'Z');
        
        subtype word_t is std_logic_vector(WORD_SIZE-1 downto 0);
        type memory_t  is array(0 to RAM_SIZE-1) of word_t;
        
        signal ram     : memory_t := (others => (others => '0'));   
    begin
        process (clk)
           variable choices : std_logic_vector(1 downto 0);
        begin
           if rising_edge(clk) then
              
                 output <= HIGH_IMP;
                 
                 choices := en_read & en_write;
           
              case choices is
                    when "10" =>
                          output <= ram(to_integer(unsigned(addr2)));
                    
                    when "01" =>
                          ram(to_integer(unsigned(addr1))) <= input(23-12 downto 0);
                          ram(to_integer(unsigned(addr2))) <= input(23 downto 12);
                     
                    when "11" =>
                          output <= ram(to_integer(unsigned(addr2)));
                          ram(to_integer(unsigned(addr1))) <= input(23-12 downto 0);
                          ram(to_integer(unsigned(addr2))) <= input(23 downto 12);
                             
                 when others => null;
              end case;
           end if;
        end process;
    end Behavioral;
    • 0
  2. Jumi hat den im Thema hinzugefügt: Task 5   

    ne hab auch irgentwo einen fehler selber drin
    fsm_beh.vhdl
    • 0
  3. Jumi hat den im Thema hinzugefügt: Task 5   

    falsches bild warscheinlich

    • 0