[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA: Loadable Icarus Targets



I'm trying to build a loadable backend target for iverilog, but I'm not clear how to set one up.  For starters, I tried replicated the null target as test_target.c:

  #include "ivl_target.h"
  
  int target_design(ivl_design_t des)
  {
    return 0;
  }

Then I compile it with:

  $ gcc -shared -o test_target.tgt test_target.c

Then I created a test_target.conf file (what does this do?):

  -t:test_target
  flag:DLL=test_target.tgt

After putting test_target.conf and test_target.tgt in the lib/ivl directory, I run:

  $ iverilog -ttest_target some_design.v

But I get the following error:

  error: Code generator type test_target not found.

What am I doing wrong?

Thanks!

-Tom