Altera_Forum
Honored Contributor
19 years agoProblem with Component Editor in SOPC Boilder
Hello everyone.
I have a little problem with Component Editor in SOPC Builder. I tryed create SOPC Builder component using my own IP core which has got entity such as: entity key_pad_with_clk_div is generic( SIZE : natural := 1 ); port( chipselect : in STD_LOGIC; clk : in STD_LOGIC; read_n : in STD_LOGIC; reset_n : in STD_LOGIC; write_n : in STD_LOGIC; address : in STD_LOGIC_VECTOR(1 downto 0); sw_in : in STD_LOGIC_VECTOR(SIZE-1 downto 0); writedata : in STD_LOGIC_VECTOR(15 downto 0); irq : out STD_LOGIC; waitrequest_n : out STD_LOGIC; readdata : out STD_LOGIC_VECTOR(15 downto 0) ); end key_pad_with_clk_div; but SOPC Builder Component Editor do not let my use variable length of input port "sw_in : in STD_LOGIC_VECTOR(SIZE-1 downto 0)". When i see Preview the Wizard which is part of Component Wizard I can see this: ---------------------------------- Parameters SIZE: ---------------------------------- Parameterized signal width sw_in[(size-1) - (0) + 1]: -1 ---------------------------------- and it doesn't matter which "SIZE" I insert. Inserted parameters do not change size of sw_in. The sw_in is always one bit range. Please help me. Best regards Marcin. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/dry.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif