Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

How to test user logic

Hi,everyone,

I wrote a user logic to make Nios II read data from a fifo.The ports defination as follow:

clk,

resetn,

//interface to Avalon

chip_select,

address,

write_n,

write_data,

read_n,

read_data,

//interface to fifo

fifo_indata,

rdclk, //fifo read clock

rdreq //fifo read requst signal

I also wrote the head file of register for Nios to read or write the registers.

How can I test my own module?Are there some steps I can follow?

And how can I make sure how many cycles the Avalon needs to read from the registers?

Help me ,please. Thanks.