Results 1 to 8 of 8

Thread: creating custom multiple registers

  1. #1
    Join Date
    Nov 2017
    Posts
    6
    Rep Power
    1

    Default creating custom multiple registers

    Hi,

    I am working on a project to create 32x16 register banks as custom components on the NIOS 2 processor.
    I am already able to create a single 32 bit register. However I am unable to extend it to 32x16. With the method I employed to implement this, it gives me an error saying the number of pins exceed the number of pins available on the fpga.

    Any help on this would be much appreciated!!

  2. #2
    Join Date
    Nov 2017
    Posts
    265
    Rep Power
    1

    Default Re: creating custom multiple registers

    Hi,

    1.Are you trying to create registers in your own IP and its ports exported it?
    Why can't you use on-chip memory for multiple register?by which we can archive read/write.
    No need of additional I/O.

    Best Regards,
    Anand Raj Shankar
    (This message was posted on behalf of Intel Corporation)

  3. #3
    Join Date
    Nov 2017
    Posts
    6
    Rep Power
    1

    Default Re: creating custom multiple registers

    Hi Anand,

    By on-chip memory, do you mean the PIOs?
    I basically need to store data received serially by the UART component on the NIOS2 into different registers.
    What would be the best way to implement this?

  4. #4
    Join Date
    Nov 2017
    Posts
    265
    Rep Power
    1

    Default Re: creating custom multiple registers

    Hi,

    1.After receiving the data you can store it in on chip memory.(Consider each memory address as registers and store data)
    https://www.youtube.com/watch?v=v6rhbVABlo8
    https://www.youtube.com/watch?v=ZfthoAFI7LY
    (UART<->NIOS II<->on chip ram<->custom IP with memory Avalon Memory Mapped Interface)
    2.Are trying to get 32bitx16 of data parallelly from FPGA?
    You can use multiplexing by using only 32 pin for data or Use serial with one pin.

    Best Regards,
    Anand Raj Shankar
    (This message was posted on behalf of Intel Corporation)

  5. #5
    Join Date
    Nov 2017
    Posts
    6
    Rep Power
    1

    Default Re: creating custom multiple registers

    Hi,

    I am trying to get uart data serially from the FPGA and store in a custom register and later on use the register contents in a state machine. However, the uart data can vary in size and hence i am trying to have a 32x16 bit register.
    I tried following your suggestion, but since i need to use the uart data later on in my state machine i dont think using the on chip memory would help. Let me know if my assumption is right.

    Best Regards,
    smruthi

  6. #6
    Daixiwen is offline Moderator **Forum Master**
    Join Date
    May 2008
    Location
    Norway
    Posts
    4,477
    Rep Power
    1

    Default Re: creating custom multiple registers

    You can definitely use an on-chip memory for that. You can even use a double port memory, with one port for writing from the UART and one port reading from your state machine.
    If your state machine just needs to read sequentially the data from the UART you could also use a FIFO instead, it would make your design simpler.
    Definition of a man-year: 730 people trying to finish the project before lunch

  7. #7
    Join Date
    Nov 2017
    Posts
    6
    Rep Power
    1

    Default Re: creating custom multiple registers

    But I am unabke to export the on chip memory. Is there any other way to do this?

  8. #8
    Daixiwen is offline Moderator **Forum Master**
    Join Date
    May 2008
    Location
    Norway
    Posts
    4,477
    Rep Power
    1

    Default Re: creating custom multiple registers

    What do you mean by "export the on chip memory"? You can access the memory contents through its ports.
    Definition of a man-year: 730 people trying to finish the project before lunch

Similar Threads

  1. Need help writing timequest constraint(s) for multiple registers
    By bobyost in forum Quartus II and EDA Tools Discussion
    Replies: 0
    Last Post: April 2nd, 2013, 11:45 AM
  2. Error: connection between multiple registers with the same bus
    By GBernardi in forum Quartus II and EDA Tools Discussion
    Replies: 0
    Last Post: March 4th, 2013, 10:21 AM
  3. “Cannot convert all sets of registers into RAM megafunctions when creating nodes.”
    By saber890 in forum Quartus II and EDA Tools Discussion
    Replies: 4
    Last Post: December 14th, 2011, 11:16 PM
  4. Creating pipeline registers
    By Inebas in forum General Altera Discussion
    Replies: 0
    Last Post: October 4th, 2008, 10:41 AM
  5. creating memory of registers
    By domaj in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: June 15th, 2008, 06:36 PM

Tags for this Thread

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
  •