Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

Problem with Component Editor in SOPC Boilder

Altera_Forum
Honored Contributor II
980 Views

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&#39;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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
296 Views

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
0 Kudos
Reply