[ixp1200] problem with the simuator

damien damien at cse.ogi.edu
Thu Aug 29 19:53:52 EDT 2002


Hi all,
I'm trying to use the developer workbench
to simulate the hash unit.
My problem is the function hash_64() always returns 0...
Could someone please tell me what's wrong in the following code:

/    long long data_to_hash = 0x1234567899;
    __declspec(sram_write_reg) long long hash_Input;
    __declspec(sram_read_reg) long long hash_Output;
    long long result;

while(1)
{
    if(ctx() == 0)
    {
        hash_Input = data_to_hash;
        hash_64((__declspec(sram_write_reg) void *)&hash_Input, 
(__declspec(sram_read_reg) void *)&hash_Output, 1, sig_done);
        ctx_wait(fbi);
        result = hash_Output;
   
    }
    else
    {
    ctx_wait(voluntary);
    }
}/

--Damien




More information about the ixp1200 mailing list