Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Can't inplement this code...Help!

I need to inplement this code and than use it for another code:

library IEEE;

use IEEE.STD_LOGIC_1164.all;

package ad_filt is

constant NUM_TAPS : integer := 16:

constant mu : integer := 16;

type sh_reg is array (0 to NUM_TAPS-1) of std_logic_vector(15 downto 0);

type tmp_reg is array (0 to NUM_TAPS-1) of std_logic_vector(31 downto 0);

end ad_filt;

Then I use command in another code:

use work.ad_filt.ALL;

How to inplement this code and use it for another code?

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    whats the problem? Have you forgotten to add the VHD file this package is in to the project?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I need to inplement this code and than use it for another code:

    library IEEE;

    use IEEE.STD_LOGIC_1164.all;

    package ad_filt is

    constant NUM_TAPS : integer := 16:

    constant mu : integer := 16;

    type sh_reg is array (0 to NUM_TAPS-1) of std_logic_vector(15 downto 0);

    type tmp_reg is array (0 to NUM_TAPS-1) of std_logic_vector(31 downto 0);

    end ad_filt;

    I need to implement this code above.And after that to use it in another code with command:

    use work.ad_filt.ALL;

    When I try to inplement code above I have lots of errors...My English is bad so I have difficulty to explain.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There is nothing wrong with the code you posted. I can only guess the error is elsewhere.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Tricky...

    Is there some tutorial where I can see how to 2,3,4 or more VHDL codes put in one quartus project?

    Tomorrow I will put errors here,then you can see whats wrong...Thanks anyway!