fork download
  1.  
  2. #include "debayer_tb.h"
  3. #include "debayer.h"
  4. #include "wami_params.h"
  5. #include "wami_utils.h"
  6. #include "wami_debayer.h"
  7. #include "mydata.h"
  8. #include <ctime>
  9. #include <ostream>
  10.  
  11. //call testbench
  12. int sc_main(int, char **){
  13.  
  14. //read the input
  15. fp = fopen(filename, "rb");
  16. if (fp == NULL)
  17. {
  18. fprintf(stderr, "Error: Unable to open input file %s for reading.\n",
  19. filename);
  20. exit(EXIT_FAILURE);
  21. }
  22.  
  23. //read each line of the file and get the first three lines
  24. //ifstream?
  25.  
  26. //define parameters
  27. sc_clock clk("clk", 10, SC_NS);
  28. sc_signal<bool> rst("rst");
  29. sc_signal<Input> input;
  30. sc_signal<Output> output;
  31.  
  32. //link parameters to DUT
  33. debayer dut("dut");
  34. dut.clk(clk);
  35. dut.rst(rst);
  36. dut.input(input);
  37. dut.output(output);
  38.  
  39. //link parameters to test bench
  40. debayer_tb tb("tb");
  41. tb.clk(clk);
  42. tb.rst(rst);
  43. tb.input(input);
  44. tb.output(output);
  45.  
  46. //reset
  47. rst.write(false);
  48. sc_start(11, SC_NS);
  49. rst.write(true);
  50.  
  51. //need to tell it how long to run simulation?
  52.  
  53. sc_stop();
  54. return();
  55.  
  56. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:24: fatal error: debayer_tb.h: No such file or directory
 #include "debayer_tb.h"
                        ^
compilation terminated.
stdout
Standard output is empty