Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIssue with the application layer from NIOS II IDE while accessing a custom instructio
Hello, I have implemented a custom instruction for full adder (just a basic one) in verilog for NIOS II. However when my application code (C) from NIOS II tries to access the macro for the cu...
Altera_Forum
Honored Contributor
13 years agoHave you simulated this to make sure it's not the custom instruction itself? i.e. do you know for sure your custom instruction is seeing n = 4, dataa = 2047, datab = 10?
Also did you read page 11 of this document? http://www.altera.com/literature/ug/ug_nios2_custom_instruction.pdf By including the clock enable, start, and done signals it is up to your custom instruction to time everything properly.