stdio_h.vhd and 0x prefixes

Discussion in 'VHDL' started by Dal, May 1, 2006.

  1. Dal

    Dal Guest

    I am using the stdio_h.vhd package and would like to read a '0x'
    prefixed hex string into an integer or slv type. sscanf seems to do
    most things but it doesn't look like it handles 0x prefixes. Is there
    another way to do it, other than checking the string myself?

    Darrin
     
    Dal, May 1, 2006
    #1
    1. Advertisements

  2. Dal wrote:
    > I am using the stdio_h.vhd package


    Post the code. That is not a standard package.

    -- Mike Treseler
     
    Mike Treseler, May 1, 2006
    #2
    1. Advertisements

  3. Dal

    Amal Guest

    Amal, May 1, 2006
    #3
  4. Dal

    Dal Guest

    The stdio_h package provides c type functions as so makes it easy to do
    type conversions.

    It looks like I need the "%i" format.

    Does anyone, who knows about this package, know if this format string
    will be supported? Is there any work being done on this package?
     
    Dal, May 2, 2006
    #4
  5. Dal

    Amal Guest

    Verilog has always had strong C-type formatted I/O. I sugessted that
    VHDL-200x adds support for this. You can send your requests and
    sugesstions to VHDL-200x-FT task force. I am not sure of the status of
    this package, but I have used it, but it has a few gotcha's and
    problems, but it's a great package.
     
    Amal, May 2, 2006
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MACEI'S
    Replies:
    0
    Views:
    1,569
    MACEI'S
    Jul 10, 2003
  2. Mike Treseler

    Re: Quartus warning in NUMERIC_STD.vhd

    Mike Treseler, Jul 11, 2003, in forum: VHDL
    Replies:
    2
    Views:
    2,093
    Clyde R. Shappee
    Jul 13, 2003
  3. Attila Csosz

    bug in arith.vhd?

    Attila Csosz, Jan 17, 2005, in forum: VHDL
    Replies:
    1
    Views:
    763
    Mike Treseler
    Jan 17, 2005
  4. Santosh
    Replies:
    0
    Views:
    859
    Santosh
    Mar 16, 2006
  5. =?Utf-8?B?Q29ybmUgUmFiZQ==?=

    Webservices SOAP and Namespace prefixes

    =?Utf-8?B?Q29ybmUgUmFiZQ==?=, Oct 26, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    6,231
    =?Utf-8?B?Q29ybmUgUmFiZQ==?=
    Oct 26, 2004
  6. S ML
    Replies:
    0
    Views:
    531
  7. Eli Bendersky
    Replies:
    14
    Views:
    1,309
    Eli Bendersky
    Oct 11, 2008
  8. Xeno Campanoli
    Replies:
    2
    Views:
    243
    Eric Hodel
    Jan 25, 2008
Loading...