C lines To VHDL

Discussion in 'VHDL' started by hailconan@gmail.com, Aug 13, 2005.

  1. Guest

    Hi, suppose I have these lines in C:
    //=====================

    int N = 5;
    int sr0 [N] = {0};
    int start = 0;
    int end = 0;
    int num_ones_each_col[5] ={0};
    int Matrix[5] = {100, 300, 500, 10, 30};


    for (j = 0 ; j < N ; j++)
    {
    end += num_ones_each_col[j];
    start = end - Matrix[j];
    Store_the_Start_Mul_End(sr0,start,end,j); //this function store teh
    result of start*end in sr0;
    }
    //=====================


    How can I program them in VHDL ?
    Thnaks
     
    , Aug 13, 2005
    #1
    1. Advertising

  2. Hubble Guest

    > How can I program them in VHDL ?

    Just learn VHDL. The translation is rather straight forward.

    Hubble.
     
    Hubble, Aug 13, 2005
    #2
    1. Advertising

  3. Guest

    Hi, Hubble I have started with VHDL for a month, but I have problem
    with the sequence above? so how can I do it? thanks.
     
    , Aug 14, 2005
    #3
  4. Guest

    schrieb:

    > Hi, Hubble I have started with VHDL for a month, but I have problem
    > with the sequence above? so how can I do it? thanks.


    You could post the part of your VHDL code you have already written.

    Rgds
    André
     
    , Aug 15, 2005
    #4
    1. Advertising

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. Jack
    Replies:
    9
    Views:
    2,672
  2. Joe Wright
    Replies:
    0
    Views:
    521
    Joe Wright
    Jul 27, 2003
  3. lovecreatesbeauty

    How to know two lines are a pare parallel lines

    lovecreatesbeauty, Apr 27, 2006, in forum: C Programming
    Replies:
    11
    Views:
    667
    Old Wolf
    Apr 28, 2006
  4. Replies:
    1
    Views:
    454
    Jonathan Mcdougall
    Dec 6, 2005
  5. afd
    Replies:
    1
    Views:
    8,352
    Colin Paul Gloster
    Mar 23, 2007
Loading...

Share This Page