Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Testbench

Hi everyone

I need to help for my graduate thesis. I am working on aes 128 cipher and i had a code but i need a simulation and testbench . how can i do them . pls help me . I appretiated for your advice and help

I hope I could tell you thanks.

9 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    my ports are

    entity key_gen is

    port (roundkey: in STD_LOGIC_VECTOR(127 downto 0);

    round: in round_type;

    DATAOUT: out STD_LOGIC_VECTOR(127 downto 0));

    end entity key_gen;

    I need to testbench code for modelsim simulation.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I had a aes code but i dont know that is it works correct. I need to testbench code for check my code. can you control my code and faults? I am a beginner at fpga

    my code's here
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Why not try writing a testbench yourself, and come back when you have problems?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i am trying to write but i am not so good. and I have to 2 weeks for project ending.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    i am trying to write but i am not so good. and I have to 2 weeks for project ending.

    --- Quote End ---

    Well, have a go, then come back when you are having problems. We can help with problems, not do your work for you.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You have no "begin" after architecture.

    "variable" cannot be used in architectures, they have to be in processes/functions (did you mean signal?)