Results 1 to 3 of 3

Thread: How to pass generic to NIOS II

  1. #1
    Join Date
    Aug 2014
    Posts
    17
    Rep Power
    1

    Default How to pass generic to NIOS II

    Hi Everyone

    I have a FPGA design with a NIOS II softcore in it which mainly handles peripheral devices but also does some security tasks like authentication of peripheral devices. Now for this authentication I need to know a key within the design with which I can authenticate the peripheral devices. The key is of 128 bits length and can be different for different peripheral devices. This depends on what device is attached to the FPGA. Since I don't want to change the code of the NIOS every time I recompile the design it would be nice if there is a possibility where I can pass the NIOS a generic with the key. Like this I could avoid to hardcode the key into the software of the NIOS. My general question is: Is it possible to pass a generic to the NIOS? And if not, is there any other way to pass the NIOS this kind of data for processing within the NIOS code? Or do I have to implement some kind of serial connection to my NIOS II core where I could pass the data?

  2. #2
    Join Date
    Jul 2007
    Location
    Germany
    Posts
    145
    Rep Power
    1

    Default Re: How to pass generic to NIOS II

    Hi Camillo,

    you could store the key in an external ROM connected to Nios.
    Before starting Quartus Compile you can change the initialization file (.hex) matching the design.

    Jens

  3. #3
    Join Date
    Aug 2014
    Posts
    17
    Rep Power
    1

    Default Re: How to pass generic to NIOS II

    ok, I will try this one. This should be a good way how to solve this. Thanks for the suggestion!

Similar Threads

  1. Replies: 2
    Last Post: November 29th, 2017, 01:52 PM
  2. Replies: 6
    Last Post: April 22nd, 2013, 08:10 AM
  3. NIOS ii Generic tristate controller - FLASH - DE4
    By corsiferrao@gmail.com in forum General Discussion Forum
    Replies: 2
    Last Post: August 6th, 2012, 11:55 AM
  4. pass generic value to a vhdl file in verilog
    By domtheron in forum General Altera Discussion
    Replies: 2
    Last Post: May 29th, 2012, 09:54 PM
  5. how to pass an array of generic in Modelsim
    By wdshen in forum Quartus II and EDA Tools Discussion
    Replies: 3
    Last Post: June 3rd, 2011, 12:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •