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++
12602 Discussions

Is there any norm to define registers?

Altera_Forum
Honored Contributor II
1,085 Views

Hello,everybody. 

 

What I want to do is to creat a custom nios2 component. I'm now writing the HDL files with verilog. According to the avalon specfication and the custom peripheral specfication, I have defined the interface signals. Besides, some registers should also be defined. My question is : whether there is any norm with which I can define these registers? Or I just do it without considering any norms, as long as it proves to work? 

 

Replise are expected. Thanks for all. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
402 Views

 

--- Quote Start ---  

originally posted by mxy_1984@Apr 17 2006, 07:18 AM 

hello,everybody. 

 

what i want to do is to creat a custom nios2 component. i&#39;m now writing the hdl files with verilog. according to the avalon specfication and the custom peripheral specfication, i have defined the interface signals. besides, some registers should also be defined. my question is : whether there is any norm with which i can define these registers? or i just do it without considering any norms, as long as it proves to work? 

 

replise are expected. thanks for all. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/rolleyes.gif  

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14418) 

--- quote end ---  

 

--- Quote End ---  

 

HI! 

Custom component has custom driverand custom registers http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif . 

Custom component&#39;s registers, their define and initing of registers are on your conscience.
0 Kudos
Altera_Forum
Honored Contributor II
402 Views
0 Kudos
Altera_Forum
Honored Contributor II
402 Views

No norm restriction, as long as your custom logic complies with Avalon Spec. 

You will assign your registers to Avalon ports while packaing your design into Avalon standard custom peripheral.
0 Kudos
Reply