Custom IP - Suspected Interface Problem
Hello,
The following attached files describe a binary-to-hex display code custom IP peripheral for Nios II. The top-level file was selected as the bin_hex_interface file. I included the .tcl (as a .txt as the file upload system wouldn't support it), .v, and .c main files. To test, I simply used the hello_world_small sample from Eclipse and then wrote code that passes a value to that custom IP and reads it back. So, for example, passing a value of 0 into it would return 0x40 as this is the value needed to write 0 into the hex displays. Unfortunately, though, this is all I can return back, no matter what value I try to write to it. I don't know if there is something wrong with my interface, the basic module hardware logic should in theory be fine (I tested it by itself but that doesn't mean I didn't mess up somewhere and my tests didn't catch it), or the macro I'm using, but something somewhere isn't working right. Please let me know what I'm doing wrong. Thanks in advance!
I apologize. I misread the documentation. Needed BOTH Verilog files to make it work. I fixed it. It's missing the byte-addressing for the architecture.