Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2009
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,652
    Tokens
    1,389
    Habbo
    lRhyss

    Latest Awards:

    Default Biased Exponents Help

    Okay, I've Googled this and I really can't find the answer, just explanations. Therefore I hope someone can help me here D:

    Okay, I have the Binary representation of an exponent and the bias is 2^3 = 8

    So if the Binary representation was 0000 would the biased form be 0?

    And if it was 0001 would it be 1 or -1?

    And if it was 0010 would it be 2 or -2?

    Just a little confused haha

  2. #2
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Your bias is 8 so you add 8 to every exponent to get the biased exponent.
    0 becomes 8 (0000 -> 1000)
    1 becomes 9 (0001 -> 1001)
    -1 becomes 7 (-0001 -> 0111)

    It's basically an alternative to 2's complement that has trade-offs which are useful for floating point numbers.
    Chippiewill.


  3. #3
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    That's my fill of feeling stupid for the night filled.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  4. #4
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by Recursion View Post
    That's my fill of feeling stupid for the night filled.
    You never stop getting filled... with stupid.
    Chippiewill.


  5. #5
    Join Date
    Jun 2009
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,652
    Tokens
    1,389
    Habbo
    lRhyss

    Latest Awards:

    Default

    Quote Originally Posted by Recursion View Post
    That's my fill of feeling stupid for the night filled.
    Hey I'm only learning this stuff I don't really understand it :/

    Quote Originally Posted by Chippiewill View Post
    Your bias is 8 so you add 8 to every exponent to get the biased exponent.
    Quote Originally Posted by Chippiewill View Post
    0 becomes 8 (0000 -> 1000)
    1 becomes 9 (0001 -> 1001)
    -1 becomes 7 (-0001 -> 0111)

    It's basically an alternative to 2's complement that has trade-offs which are useful for floating point numbers.

    Thanks
    Last edited by lRhyss; 08-01-2014 at 08:55 PM.

  6. #6
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Quote Originally Posted by lRhyss View Post
    Hey I'm only learning this stuff I don't really understand it :/

    [FONT=Verdana]
    Thanks
    I wasn't calling you stupid, I meant I felt stupid!!
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  7. #7
    Join Date
    Jun 2009
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,652
    Tokens
    1,389
    Habbo
    lRhyss

    Latest Awards:

    Default

    Quote Originally Posted by Recursion View Post
    I wasn't calling you stupid, I meant I felt stupid!!
    Oh I am very sorry D: I'm only coming to grips with sarcasm over the internet and I seem to have really miss-read your post D:

  8. #8
    Join Date
    Jun 2009
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,652
    Tokens
    1,389
    Habbo
    lRhyss

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    You never stop getting filled... with stupid.
    Also one more thing:

    I have a question about RTL, I wanna know if I have this right (Lost my notes)

    would X = Y + Z

    Be:

    M(X) = [M(Y)] + [M(Z)] in RTL?

    It's nicer to have someone answer your questions rather than Google, sorry

  9. #9
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Assuming in this context that RTL means register transfer level then I'm going to need more information. Is this VHDL?
    Chippiewill.


  10. #10
    Join Date
    Jun 2009
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,652
    Tokens
    1,389
    Habbo
    lRhyss

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    Assuming in this context that RTL means register transfer level then I'm going to need more information. Is this VHDL?
    I have no clue, the question on my revision sheet just literally says

    " If the C++ was X = Y + Z

    Write the RTL translation"


    and yeah it's register transfer language

Page 1 of 2 12 LastLast

Posting Permissions

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