Notices
Results 1 to 1 of 1

Thread: Base conversion - GF (256) to GF (16)

  1. #1 Base conversion - GF (256) to GF (16) 
    New Member
    Join Date
    Sep 2012
    Posts
    1
    Hi there!


    For days now i am trying to figure out how to take a number in Galois Field GF (256) and to convert it to GF (16) . Both the first and the second number are 8 binary bits .




    Maybe this could help: (this is in written in verilog)

    // convert GF(256) to GF(16)
    function [7:0] GF256_TO_GF16;
    input [7:0] data;
    reg a,b,c;
    begin
    a = data[1]^data[7];
    b = data[5]^data[7];
    c = data[4]^data[6];
    GF256_TO_GF16[0] = c^data[0]^data[5];
    GF256_TO_GF16[1] = data[1]^data[2];
    GF256_TO_GF16[2] = a;
    GF256_TO_GF16[3] = data[2]^data[4];
    GF256_TO_GF16[4] = c^data[5];
    GF256_TO_GF16[5] = a^c;
    GF256_TO_GF16[6] = b^data[2]^data[3];
    GF256_TO_GF16[7] = b;
    end
    endfunction


    Any assistance would be appreciated !
    Thanks a lot!


    Reply With Quote  
     

  2.  
     

Similar Threads

  1. base 6 vs base 10
    By sculptor in forum Mathematics
    Replies: 1
    Last Post: May 9th, 2012, 05:42 PM
  2. Conversion
    By Spark001 in forum Introductions
    Replies: 1
    Last Post: April 13th, 2012, 12:03 PM
  3. Conversion
    By AlexP in forum Mathematics
    Replies: 1
    Last Post: May 6th, 2010, 03:22 PM
  4. base 10?
    By DivideByZero in forum Mathematics
    Replies: 11
    Last Post: March 20th, 2008, 06:52 PM
  5. conversion
    By jacketate in forum Chemistry
    Replies: 1
    Last Post: January 2nd, 2008, 10:31 AM
Bookmarks
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
  •