Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by shmueld@Mar 12 2006, 06:27 PM i have just started to design with the sopc builder. could someone please explain to me how the vhdl code placed in a custom component relates to the outside world and the avalon bus/nios ii microprocessor. specifically - how does the addressing work - if i want, lets say, set a specific signal high at a specific address - do i need a chip select within the vhdl ? do i need to incorporate an address into my vhdl code ? how does the base address of the component relate to my vhdl code and will the following code work without any address decoding within the vhdl :-
ouputsignal <= '1' when cs = '1' and write ='1' else '0';
could this type of functionality be incoporated into the custom component without any vhdl code ?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=13347)
--- quote end ---
--- Quote End --- Well, the hardware you designed with your VHDL code is placed in the NIOS address space, so you can address it with its own address range starting from tha base address. It seems you only want to access one register, is this right? For this you only need the cs or write signal, as you only have one address anyway. I'm not quite sure what you mean by incorporating functionality without VHDL code, but there's always verilog! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif