- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.gifLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again. Success!!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif . I found solution. It was problem in the form of variable parameter name. When You use only small letter in parameter name it works fine.
Best regards Marcin. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page