text: // ==============================================================
  // RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
  // Version: 2018.3
  // Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.
  // 
  // ===========================================================
  
  #include "myproject.h"
  #include "AESL_pkg.h"
  
  using namespace std;
  
  namespace ap_rtl {
  
  const sc_logic myproject::ap_const_logic_1 = sc_dt::Log_1;
  const sc_lv<10> myproject::ap_const_lv10_0 = "0000000000";
  const sc_logic myproject::ap_const_logic_0 = sc_dt::Log_0;
  const sc_lv<14> myproject::ap_const_lv14_0 = "00000000000000";
  const sc_lv<4> myproject::ap_const_lv4_0 = "0000";
  const sc_lv<16> myproject::ap_const_lv16_0 = "0000000000000000";
  const sc_lv<13> myproject::ap_const_lv13_0 = "0000000000000";
  const sc_lv<2> myproject::ap_const_lv2_0 = "00";
  const sc_lv<2> myproject::ap_const_lv2_1 = "1";
  const bool myproject::ap_const_boolean_1 = true;
  
  myproject::myproject(sc_module_name name) : sc_module(name), mVcdFile(0) {
      layer3_out_V_U = new myproject_layer3_out_V("layer3_out_V_U");
      layer3_out_V_U->clk(ap_clk);
      layer3_out_V_U->reset(ap_rst);
      layer3_out_V_U->i_address0(conv_2d_large_cl_1_U0_res_V_address0);
      layer3_out_V_U->i_ce0(conv_2d_large_cl_1_U0_res_V_ce0);
      layer3_out_V_U->i_we0(conv_2d_large_cl_1_U0_res_V_we0);
      layer3_out_V_U->i_d0(conv_2d_large_cl_1_U0_res_V_d0);
      layer3_out_V_U->i_q0(layer3_out_V_i_q0);
      layer3_out_V_U->t_address0(relu_1_U0_data_V_address0);
      layer3_out_V_U->t_ce0(relu_1_U0_data_V_ce0);
      layer3_out_V_U->t_we0(ap_var_for_const0);
      layer3_out_V_U->t_d0(ap_var_for_const1);
      layer3_out_V_U->t_q0(layer3_out_V_t_q0);
      layer3_out_V_U->i_ce(ap_var_for_const2);
      layer3_out_V_U->t_ce(ap_var_for_const2);
      layer3_out_V_U->i_full_n(layer3_out_V_i_full_n);
      layer3_out_V_U->i_write(conv_2d_large_cl_1_U0_ap_done);
      layer3_out_V_U->t_empty_n(layer3_out_V_t_empty_n);
      layer3_out_V_U->t_read(relu_1_U0_ap_ready);
      layer5_out_V_U = new myproject_layer5_out_V("layer5_out_V_U");
      layer5_out_V_U->clk(ap_clk);
      layer5_out_V_U->reset(ap_rst);
      layer5_out_V_U->i_address0(relu_1_U0_res_V_address0);
      layer5_out_V_U->i_ce0(relu_1_U0_res_V_ce0);
      layer5_out_V_U->i_we0(relu_1_U0_res_V_we0);
      layer5_out_V_U->i_d0(relu_1_U0_res_V_d0);
      layer5_out_V_U->i_q0(layer5_out_V_i_q0);
      layer5_out_V_U->t_address0(pooling2d_cl_U0_data_V_address0);
      layer5_out_V_U->t_ce0(pooling2d_cl_U0_data_V_ce0);
      layer5_out_V_U->t_we0(ap_var_for_const0);
      layer5_out_V_U->t_d0(ap_var_for_const3);
      layer5_out_V_U->t_q0(layer5_out_V_t_q0);
      layer5_out_V_U->i_ce(ap_var_for_const2);
      layer5_out_V_U->t_ce(ap_var_for_const2);
      layer5_out_V_U->i_full_n(layer5_out_V_i_full_n);
      layer5_out_V_U->i_write(relu_1_U0_ap_done);
      layer5_out_V_U->t_empty_n(layer5_out_V_t_empty_n);
      layer5_out_V_U->t_read(pooling2d_cl_U0_ap_ready);
      layer6_out_V_U = new myproject_layer6_out_V("layer6_out_V_U");
      layer6_out_V_U->clk(ap_clk);
      layer6_out_V_U->reset(ap_rst);
      layer6_out_V_U->i_address0(pooling2d_cl_U0_res_V_address0);
      layer6_out_V_U->i_ce0(pooling2d_cl_U0_res_V_ce0);
      layer6_out_V_U->i_we0(pooling2d_cl_U0_res_V_we0);
      layer6_out_V_U->i_d0(pooling2d_cl_U0_res_V_d0);
      layer6_out_V_U->i_q0(layer6_out_V_i_q0);
      layer6_out_V_U->t_address0(conv_2d_large_cl_U0_data_V_address0);
      layer6_out_V_U->t_ce0(conv_2d_large_cl_U0_data_V_ce0);
      layer6_out_V_U->t_we0(ap_var_for_const0);
      layer6_out_V_U->t_d0(ap_var_for_const1);
      layer6_out_V_U->t_q0(layer6_out_V_t_q0);
      layer6_out_V_U->i_ce(ap_var_for_const2);
      layer6_out_V_U->t_ce(ap_var_for_const2);
      layer6_out_V_U->i_full_n(layer6_out_V_i_full_n);
      layer6_out_V_U->i_write(pooling2d_cl_U0_ap_done);
      layer6_out_V_U->t_empty_n(layer6_out_V_t_empty_n);
      layer6_out_V_U->t_read(conv_2d_large_cl_U0_ap_ready);
      layer7_out_V_U = new myproject_layer7_out_V("layer7_out_V_U");
      layer7_out_V_U->clk(ap_clk);
      layer7_out_V_U->reset(ap_rst);
      layer7_out_V_U->i_address0(conv_2d_large_cl_U0_res_V_address0);
      layer7_out_V_U->i_ce0(conv_2d_large_cl_U0_res_V_ce0);
      layer7_out_V_U->i_we0(conv_2d_large_cl_U0_res_V_we0);
      layer7_out_V_U->i_d0(conv_2d_large_cl_U0_res_V_d0);
      layer7_out_V_U->i_q0(layer7_out_V_i_q0);
      layer7_out_V_U->t_address0(relu_U0_data_V_address0);
      layer7_out_V_U->t_ce0(relu_U0_data_V_ce0);
      layer7_out_V_U->t_we0(ap_var_for_const0);
      layer7_out_V_U->t_d0(ap_var_for_const1);
      layer7_out_V_U->t_q0(layer7_out_V_t_q0);
      layer7_out_V_U->i_ce(ap_var_for_const2);
      layer7_out_V_U->t_ce(ap_var_for_const2);
      layer7_out_V_U->i_full_n(layer7_out_V_i_full_n);
      layer7_out_V_U->i_write(conv_2d_large_cl_U0_ap_done);
      layer7_out_V_U->t_empty_n(layer7_out_V_t_empty_n);
      layer7_out_V_U->t_read(relu_U0_ap_ready);
      layer9_out_V_U = new myproject_layer9_out_V("layer9_out_V_U");
      layer9_out_V_U->clk(ap_clk);
      layer9_out_V_U->reset(ap_rst);
      layer9_out_V_U->i_address0(relu_U0_res_V_address0);
      layer9_out_V_U->i_ce0(relu_U0_res_V_ce0);
      layer9_out_V_U->i_we0(relu_U0_res_V_we0);
      layer9_out_V_U->i_d0(relu_U0_res_V_d0);
      layer9_out_V_U->i_q0(layer9_out_V_i_q0);
      layer9_out_V_U->t_address0(pooling2d_cl_1_U0_data_V_address0);
      layer9_out_V_U->t_ce0(pooling2d_cl_1_U0_data_V_ce0);
      layer9_out_V_U->t_we0(ap_var_for_const0);
      layer9_out_V_U->t_d0(ap_var_for_const3);
      layer9_out_V_U->t_q0(layer9_out_V_t_q0);
      layer9_out_V_U->i_ce(ap_var_for_const2);
      layer9_out_V_U->t_ce(ap_var_for_const2);
      layer9_out_V_U->i_full_n(layer9_out_V_i_full_n);
      layer9_out_V_U->i_write(relu_U0_ap_done);
      layer9_out_V_U->t_empty_n(layer9_out_V_t_empty_n);
      layer9_out_V_U->t_read(pooling2d_cl_1_U0_ap_ready);
      layer10_out_V_U = new myproject_layer10_out_V("layer10_out_V_U");
      layer10_out_V_U->clk(ap_clk);
      layer10_out_V_U->reset(ap_rst);
      layer10_out_V_U->i_address0(pooling2d_cl_1_U0_res_V_address0);
      layer10_out_V_U->i_ce0(pooling2d_cl_1_U0_res_V_ce0);
      layer10_out_V_U->i_we0(pooling2d_cl_1_U0_res_V_we0);
      layer10_out_V_U->i_d0(pooling2d_cl_1_U0_res_V_d0);
      layer10_out_V_U->i_q0(layer10_out_V_i_q0);
      layer10_out_V_U->t_address0(dense_large_2_U0_data_V_address0);
      layer10_out_V_U->t_ce0(dense_large_2_U0_data_V_ce0);
      layer10_out_V_U->t_we0(ap_var_for_const0);
      layer10_out_V_U->t_d0(ap_var_for_const1);
      layer10_out_V_U->t_q0(layer10_out_V_t_q0);
      layer10_out_V_U->i_ce(ap_var_for_const2);
      layer10_out_V_U->t_ce(ap_var_for_const2);
      layer10_out_V_U->i_full_n(layer10_out_V_i_full_n);
      layer10_out_V_U->i_write(pooling2d_cl_1_U0_ap_done);
      layer10_out_V_U->t_empty_n(layer10_out_V_t_empty_n);
      layer10_out_V_U->t_read(dense_large_2_U0_ap_ready);
      layer11_out_V_U = new myproject_layer11_out_V("layer11_out_V_U");
      layer11_out_V_U->clk(ap_clk);
      layer11_out_V_U->reset(ap_rst);
      layer11_out_V_U->i_address0(dense_large_2_U0_res_V_address0);
      layer11_out_V_U->i_ce0(dense_large_2_U0_res_V_ce0);
      layer11_out_V_U->i_we0(dense_large_2_U0_res_V_we0);
      layer11_out_V_U->i_d0(dense_large_2_U0_res_V_d0);
      layer11_out_V_U->i_q0(layer11_out_V_i_q0);
      layer11_out_V_U->t_address0(relu_3_U0_data_V_address0);
      layer11_out_V_U->t_ce0(relu_3_U0_data_V_ce0);
      layer11_out_V_U->t_we0(ap_var_for_const0);
      layer11_out_V_U->t_d0(ap_var_for_const1);
      layer11_out_V_U->t_q0(layer11_out_V_t_q0);
      layer11_out_V_U->i_ce(ap_var_for_const2);
      layer11_out_V_U->t_ce(ap_var_for_const2);
      layer11_out_V_U->i_full_n(layer11_out_V_i_full_n);
      layer11_out_V_U->i_write(dense_large_2_U0_ap_done);
      layer11_out_V_U->t_empty_n(layer11_out_V_t_empty_n);
      layer11_out_V_U->t_read(relu_3_U0_ap_ready);
      layer13_out_V_U = new myproject_layer13_out_V("layer13_out_V_U");
      layer13_out_V_U->clk(ap_clk);
      layer13_out_V_U->reset(ap_rst);
      layer13_out_V_U->i_address0(relu_3_U0_res_V_address0);
      layer13_out_V_U->i_ce0(relu_3_U0_res_V_ce0);
      layer13_out_V_U->i_we0(relu_3_U0_res_V_we0);
      layer13_out_V_U->i_d0(relu_3_U0_res_V_d0);
      layer13_out_V_U->i_q0(layer13_out_V_i_q0);
      layer13_out_V_U->t_address0(dense_large_1_U0_data_V_address0);
      layer13_out_V_U->t_ce0(dense_large_1_U0_data_V_ce0);
      layer13_out_V_U->t_we0(ap_var_for_const0);
      layer13_out_V_U->t_d0(ap_var_for_const3);
      layer13_out_V_U->t_q0(layer13_out_V_t_q0);
      layer13_out_V_U->i_ce(ap_var_for_const2);
      layer13_out_V_U->t_ce(ap_var_for_const2);
      layer13_out_V_U->i_full_n(layer13_out_V_i_full_n);
      layer13_out_V_U->i_write(relu_3_U0_ap_done);
      layer13_out_V_U->t_empty_n(layer13_out_V_t_empty_n);
      layer13_out_V_U->t_read(dense_large_1_U0_ap_ready);
      layer14_out_V_U = new myproject_layer14_out_V("layer14_out_V_U");
      layer14_out_V_U->clk(ap_clk);
      layer14_out_V_U->reset(ap_rst);
      layer14_out_V_U->i_address0(dense_large_1_U0_res_V_address0);
      layer14_out_V_U->i_ce0(dense_large_1_U0_res_V_ce0);
      layer14_out_V_U->i_we0(dense_large_1_U0_res_V_we0);
      layer14_out_V_U->i_d0(dense_large_1_U0_res_V_d0);
      layer14_out_V_U->i_q0(layer14_out_V_i_q0);
      layer14_out_V_U->t_address0(relu_2_U0_data_V_address0);
      layer14_out_V_U->t_ce0(relu_2_U0_data_V_ce0);
      layer14_out_V_U->t_we0(ap_var_for_const0);
      layer14_out_V_U->t_d0(ap_var_for_const1);
      layer14_out_V_U->t_q0(layer14_out_V_t_q0);
      layer14_out_V_U->i_ce(ap_var_for_const2);
      layer14_out_V_U->t_ce(ap_var_for_const2);
      layer14_out_V_U->i_full_n(layer14_out_V_i_full_n);
      layer14_out_V_U->i_write(dense_large_1_U0_ap_done);
      layer14_out_V_U->t_empty_n(layer14_out_V_t_empty_n);
      layer14_out_V_U->t_read(relu_2_U0_ap_ready);
      layer16_out_V_U = new myproject_layer16_out_V("layer16_out_V_U");
      layer16_out_V_U->clk(ap_clk);
      layer16_out_V_U->reset(ap_rst);
      layer16_out_V_U->i_address0(relu_2_U0_res_V_address0);
      layer16_out_V_U->i_ce0(relu_2_U0_res_V_ce0);
      layer16_out_V_U->i_we0(relu_2_U0_res_V_we0);
      layer16_out_V_U->i_d0(relu_2_U0_res_V_d0);
      layer16_out_V_U->i_q0(layer16_out_V_i_q0);
      layer16_out_V_U->t_address0(dense_large_U0_data_V_address0);
      layer16_out_V_U->t_ce0(dense_large_U0_data_V_ce0);
      layer16_out_V_U->t_we0(ap_var_for_const0);
      layer16_out_V_U->t_d0(ap_var_for_const3);
      layer16_out_V_U->t_q0(layer16_out_V_t_q0);
      layer16_out_V_U->i_ce(ap_var_for_const2);
      layer16_out_V_U->t_ce(ap_var_for_const2);
      layer16_out_V_U->i_full_n(layer16_out_V_i_full_n);
      layer16_out_V_U->i_write(relu_2_U0_ap_done);
      layer16_out_V_U->t_empty_n(layer16_out_V_t_empty_n);
      layer16_out_V_U->t_read(dense_large_U0_ap_ready);
      layer17_out_V_U = new myproject_layer17_out_V("layer17_out_V_U");
      layer17_out_V_U->clk(ap_clk);
      layer17_out_V_U->reset(ap_rst);
      layer17_out_V_U->i_address0(dense_large_U0_res_V_address0);
      layer17_out_V_U->i_ce0(dense_large_U0_res_V_ce0);
      layer17_out_V_U->i_we0(dense_large_U0_res_V_we0);
      layer17_out_V_U->i_d0(dense_large_U0_res_V_d0);
      layer17_out_V_U->i_q0(layer17_out_V_i_q0);
      layer17_out_V_U->t_address0(softmax_U0_data_V_address0);
      layer17_out_V_U->t_ce0(softmax_U0_data_V_ce0);
      layer17_out_V_U->t_we0(ap_var_for_const0);
      layer17_out_V_U->t_d0(ap_var_for_const1);
      layer17_out_V_U->t_q0(layer17_out_V_t_q0);
      layer17_out_V_U->i_ce(ap_var_for_const2);
      layer17_out_V_U->t_ce(ap_var_for_const2);
      layer17_out_V_U->i_full_n(layer17_out_V_i_full_n);
      layer17_out_V_U->i_write(dense_large_U0_ap_done);
      layer17_out_V_U->t_empty_n(layer17_out_V_t_empty_n);
      layer17_out_V_U->t_read(softmax_U0_ap_ready);
      Block_arrayctor_loop_U0 = new Block_arrayctor_loop("Block_arrayctor_loop_U0");
      Block_arrayctor_loop_U0->ap_clk(ap_clk);
      Block_arrayctor_loop_U0->ap_rst(ap_rst);
      Block_arrayctor_loop_U0->ap_start(Block_arrayctor_loop_U0_ap_start);
      Block_arrayctor_loop_U0->ap_done(Block_arrayctor_loop_U0_ap_done);
      Block_arrayctor_loop_U0->ap_continue(Block_arrayctor_loop_U0_ap_continue);
      Block_arrayctor_loop_U0->ap_idle(Block_arrayctor_loop_U0_ap_idle);
      Block_arrayctor_loop_U0->ap_ready(Block_arrayctor_loop_U0_ap_ready);
      Block_arrayctor_loop_U0->const_size_in_1(Block_arrayctor_loop_U0_const_size_in_1);
      Block_arrayctor_loop_U0->const_size_in_1_ap_vld(Block_arrayctor_loop_U0_const_size_in_1_ap_vld);
      Block_arrayctor_loop_U0->const_size_out_1(Block_arrayctor_loop_U0_const_size_out_1);
      Block_arrayctor_loop_U0->const_size_out_1_ap_vld(Block_arrayctor_loop_U0_const_size_out_1_ap_vld);
      conv_2d_large_cl_1_U0 = new conv_2d_large_cl_1("conv_2d_large_cl_1_U0");
      conv_2d_large_cl_1_U0->ap_clk(ap_clk);
      conv_2d_large_cl_1_U0->ap_rst(ap_rst);
      conv_2d_large_cl_1_U0->ap_start(conv_2d_large_cl_1_U0_ap_start);
      conv_2d_large_cl_1_U0->ap_done(conv_2d_large_cl_1_U0_ap_done);
      conv_2d_large_cl_1_U0->ap_continue(conv_2d_large_cl_1_U0_ap_continue);
      conv_2d_large_cl_1_U0->ap_idle(conv_2d_large_cl_1_U0_ap_idle);
      conv_2d_large_cl_1_U0->ap_ready(conv_2d_large_cl_1_U0_ap_ready);
      conv_2d_large_cl_1_U0->data_V_address0(conv_2d_large_cl_1_U0_data_V_address0);
      conv_2d_large_cl_1_U0->data_V_ce0(conv_2d_large_cl_1_U0_data_V_ce0);
      conv_2d_large_cl_1_U0->data_V_q0(input1_V_q0);
      conv_2d_large_cl_1_U0->res_V_address0(conv_2d_large_cl_1_U0_res_V_address0);
      conv_2d_large_cl_1_U0->res_V_ce0(conv_2d_large_cl_1_U0_res_V_ce0);
      conv_2d_large_cl_1_U0->res_V_we0(conv_2d_large_cl_1_U0_res_V_we0);
      conv_2d_large_cl_1_U0->res_V_d0(conv_2d_large_cl_1_U0_res_V_d0);
      relu_1_U0 = new relu_1("relu_1_U0");
      relu_1_U0->ap_clk(ap_clk);
      relu_1_U0->ap_rst(ap_rst);
      relu_1_U0->ap_start(relu_1_U0_ap_start);
      relu_1_U0->ap_done(relu_1_U0_ap_done);
      relu_1_U0->ap_continue(relu_1_U0_ap_continue);
      relu_1_U0->ap_idle(relu_1_U0_ap_idle);
      relu_1_U0->ap_ready(relu_1_U0_ap_ready);
      relu_1_U0->data_V_address0(relu_1_U0_data_V_address0);
      relu_1_U0->data_V_ce0(relu_1_U0_data_V_ce0);
      relu_1_U0->data_V_q0(layer3_out_V_t_q0);
      relu_1_U0->res_V_address0(relu_1_U0_res_V_address0);
      relu_1_U0->res_V_ce0(relu_1_U0_res_V_ce0);
      relu_1_U0->res_V_we0(relu_1_U0_res_V_we0);
      relu_1_U0->res_V_d0(relu_1_U0_res_V_d0);
      pooling2d_cl_U0 = new pooling2d_cl("pooling2d_cl_U0");
      pooling2d_cl_U0->ap_clk(ap_clk);
      pooling2d_cl_U0->ap_rst(ap_rst);
      pooling2d_cl_U0->ap_start(pooling2d_cl_U0_ap_start);
      pooling2d_cl_U0->ap_done(pooling2d_cl_U0_ap_done);
      pooling2d_cl_U0->ap_continue(pooling2d_cl_U0_ap_continue);
      pooling2d_cl_U0->ap_idle(pooling2d_cl_U0_ap_idle);
      pooling2d_cl_U0->ap_ready(pooling2d_cl_U0_ap_ready);
      pooling2d_cl_U0->data_V_address0(pooling2d_cl_U0_data_V_address0);
      pooling2d_cl_U0->data_V_ce0(pooling2d_cl_U0_data_V_ce0);
      pooling2d_cl_U0->data_V_q0(layer5_out_V_t_q0);
      pooling2d_cl_U0->res_V_address0(pooling2d_cl_U0_res_V_address0);
      pooling2d_cl_U0->res_V_ce0(pooling2d_cl_U0_res_V_ce0);
      pooling2d_cl_U0->res_V_we0(pooling2d_cl_U0_res_V_we0);
      pooling2d_cl_U0->res_V_d0(pooling2d_cl_U0_res_V_d0);
      conv_2d_large_cl_U0 = new conv_2d_large_cl("conv_2d_large_cl_U0");
      conv_2d_large_cl_U0->ap_clk(ap_clk);
      conv_2d_large_cl_U0->ap_rst(ap_rst);
      conv_2d_large_cl_U0->ap_start(conv_2d_large_cl_U0_ap_start);
      conv_2d_large_cl_U0->ap_done(conv_2d_large_cl_U0_ap_done);
      conv_2d_large_cl_U0->ap_continue(conv_2d_large_cl_U0_ap_continue);
      conv_2d_large_cl_U0->ap_idle(conv_2d_large_cl_U0_ap_idle);
      conv_2d_large_cl_U0->ap_ready(conv_2d_large_cl_U0_ap_ready);
      conv_2d_large_cl_U0->data_V_address0(conv_2d_large_cl_U0_data_V_address0);
      conv_2d_large_cl_U0->data_V_ce0(conv_2d_large_cl_U0_data_V_ce0);
      conv_2d_large_cl_U0->data_V_q0(layer6_out_V_t_q0);
      conv_2d_large_cl_U0->res_V_address0(conv_2d_large_cl_U0_res_V_address0);
      conv_2d_large_cl_U0->res_V_ce0(conv_2d_large_cl_U0_res_V_ce0);
      conv_2d_large_cl_U0->res_V_we0(conv_2d_large_cl_U0_res_V_we0);
      conv_2d_large_cl_U0->res_V_d0(conv_2d_large_cl_U0_res_V_d0);
      relu_U0 = new relu("relu_U0");
      relu_U0->ap_clk(ap_clk);
      relu_U0->ap_rst(ap_rst);
      relu_U0->ap_start(relu_U0_ap_start);
      relu_U0->ap_done(relu_U0_ap_done);
      relu_U0->ap_continue(relu_U0_ap_continue);
      relu_U0->ap_idle(relu_U0_ap_idle);
      relu_U0->ap_ready(relu_U0_ap_ready);
      relu_U0->data_V_address0(relu_U0_data_V_address0);
      relu_U0->data_V_ce0(relu_U0_data_V_ce0);
      relu_U0->data_V_q0(layer7_out_V_t_q0);
      relu_U0->res_V_address0(relu_U0_res_V_address0);
      relu_U0->res_V_ce0(relu_U0_res_V_ce0);
      relu_U0->res_V_we0(relu_U0_res_V_we0);
      relu_U0->res_V_d0(relu_U0_res_V_d0);
      pooling2d_cl_1_U0 = new pooling2d_cl_1("pooling2d_cl_1_U0");
      pooling2d_cl_1_U0->ap_clk(ap_clk);
      pooling2d_cl_1_U0->ap_rst(ap_rst);
      pooling2d_cl_1_U0->ap_start(pooling2d_cl_1_U0_ap_start);
      pooling2d_cl_1_U0->ap_done(pooling2d_cl_1_U0_ap_done);
      pooling2d_cl_1_U0->ap_continue(pooling2d_cl_1_U0_ap_continue);
      pooling2d_cl_1_U0->ap_idle(pooling2d_cl_1_U0_ap_idle);
      pooling2d_cl_1_U0->ap_ready(pooling2d_cl_1_U0_ap_ready);
      pooling2d_cl_1_U0->data_V_address0(pooling2d_cl_1_U0_data_V_address0);
      pooling2d_cl_1_U0->data_V_ce0(pooling2d_cl_1_U0_data_V_ce0);
      pooling2d_cl_1_U0->data_V_q0(layer9_out_V_t_q0);
      pooling2d_cl_1_U0->res_V_address0(pooling2d_cl_1_U0_res_V_address0);
      pooling2d_cl_1_U0->res_V_ce0(pooling2d_cl_1_U0_res_V_ce0);
      pooling2d_cl_1_U0->res_V_we0(pooling2d_cl_1_U0_res_V_we0);
      pooling2d_cl_1_U0->res_V_d0(pooling2d_cl_1_U0_res_V_d0);
      dense_large_2_U0 = new dense_large_2("dense_large_2_U0");
      dense_large_2_U0->ap_clk(ap_clk);
      dense_large_2_U0->ap_rst(ap_rst);
      dense_large_2_U0->ap_start(dense_large_2_U0_ap_start);
      dense_large_2_U0->ap_done(dense_large_2_U0_ap_done);
      dense_large_2_U0->ap_continue(dense_large_2_U0_ap_continue);
      dense_large_2_U0->ap_idle(dense_large_2_U0_ap_idle);
      dense_large_2_U0->ap_ready(dense_large_2_U0_ap_ready);
      dense_large_2_U0->data_V_address0(dense_large_2_U0_data_V_address0);
      dense_large_2_U0->data_V_ce0(dense_large_2_U0_data_V_ce0);
      dense_large_2_U0->data_V_q0(layer10_out_V_t_q0);
      dense_large_2_U0->res_V_address0(dense_large_2_U0_res_V_address0);
      dense_large_2_U0->res_V_ce0(dense_large_2_U0_res_V_ce0);
      dense_large_2_U0->res_V_we0(dense_large_2_U0_res_V_we0);
      dense_large_2_U0->res_V_d0(dense_large_2_U0_res_V_d0);
      relu_3_U0 = new relu_3("relu_3_U0");
      relu_3_U0->ap_clk(ap_clk);
      relu_3_U0->ap_rst(ap_rst);
      relu_3_U0->ap_start(relu_3_U0_ap_start);
      relu_3_U0->ap_done(relu_3_U0_ap_done);
      relu_3_U0->ap_continue(relu_3_U0_ap_continue);
      relu_3_U0->ap_idle(relu_3_U0_ap_idle);
      relu_3_U0->ap_ready(relu_3_U0_ap_ready);
      relu_3_U0->data_V_address0(relu_3_U0_data_V_address0);
      relu_3_U0->data_V_ce0(relu_3_U0_data_V_ce0);
      relu_3_U0->data_V_q0(layer11_out_V_t_q0);
      relu_3_U0->res_V_address0(relu_3_U0_res_V_address0);
      relu_3_U0->res_V_ce0(relu_3_U0_res_V_ce0);
      relu_3_U0->res_V_we0(relu_3_U0_res_V_we0);
      relu_3_U0->res_V_d0(relu_3_U0_res_V_d0);
      dense_large_1_U0 = new dense_large_1("dense_large_1_U0");
      dense_large_1_U0->ap_clk(ap_clk);
      dense_large_1_U0->ap_rst(ap_rst);
      dense_large_1_U0->ap_start(dense_large_1_U0_ap_start);
      dense_large_1_U0->ap_done(dense_large_1_U0_ap_done);
      dense_large_1_U0->ap_continue(dense_large_1_U0_ap_continue);
      dense_large_1_U0->ap_idle(dense_large_1_U0_ap_idle);
      dense_large_1_U0->ap_ready(dense_large_1_U0_ap_ready);
      dense_large_1_U0->data_V_address0(dense_large_1_U0_data_V_address0);
      dense_large_1_U0->data_V_ce0(dense_large_1_U0_data_V_ce0);
      dense_large_1_U0->data_V_q0(layer13_out_V_t_q0);
      dense_large_1_U0->res_V_address0(dense_large_1_U0_res_V_address0);
      dense_large_1_U0->res_V_ce0(dense_large_1_U0_res_V_ce0);
      dense_large_1_U0->res_V_we0(dense_large_1_U0_res_V_we0);
      dense_large_1_U0->res_V_d0(dense_large_1_U0_res_V_d0);
      relu_2_U0 = new relu_2("relu_2_U0");
      relu_2_U0->ap_clk(ap_clk);
      relu_2_U0->ap_rst(ap_rst);
      relu_2_U0->ap_start(relu_2_U0_ap_start);
      relu_2_U0->ap_done(relu_2_U0_ap_done);
      relu_2_U0->ap_continue(relu_2_U0_ap_continue);
      relu_2_U0->ap_idle(relu_2_U0_ap_idle);
      relu_2_U0->ap_ready(relu_2_U0_ap_ready);
      relu_2_U0->data_V_address0(relu_2_U0_data_V_address0);
      relu_2_U0->data_V_ce0(relu_2_U0_data_V_ce0);
      relu_2_U0->data_V_q0(layer14_out_V_t_q0);
      relu_2_U0->res_V_address0(relu_2_U0_res_V_address0);
      relu_2_U0->res_V_ce0(relu_2_U0_res_V_ce0);
      relu_2_U0->res_V_we0(relu_2_U0_res_V_we0);
      relu_2_U0->res_V_d0(relu_2_U0_res_V_d0);
      dense_large_U0 = new dense_large("dense_large_U0");
      dense_large_U0->ap_clk(ap_clk);
      dense_large_U0->ap_rst(ap_rst);
      dense_large_U0->ap_start(dense_large_U0_ap_start);
      dense_large_U0->ap_done(dense_large_U0_ap_done);
      dense_large_U0->ap_continue(dense_large_U0_ap_continue);
      dense_large_U0->ap_idle(dense_large_U0_ap_idle);
      dense_large_U0->ap_ready(dense_large_U0_ap_ready);
      dense_large_U0->data_V_address0(dense_large_U0_data_V_address0);
      dense_large_U0->data_V_ce0(dense_large_U0_data_V_ce0);
      dense_large_U0->data_V_q0(layer16_out_V_t_q0);
      dense_large_U0->res_V_address0(dense_large_U0_res_V_address0);
      dense_large_U0->res_V_ce0(dense_large_U0_res_V_ce0);
      dense_large_U0->res_V_we0(dense_large_U0_res_V_we0);
      dense_large_U0->res_V_d0(dense_large_U0_res_V_d0);
      softmax_U0 = new softmax("softmax_U0");
      softmax_U0->ap_clk(ap_clk);
      softmax_U0->ap_rst(ap_rst);
      softmax_U0->ap_start(softmax_U0_ap_start);
      softmax_U0->ap_done(softmax_U0_ap_done);
      softmax_U0->ap_continue(softmax_U0_ap_continue);
      softmax_U0->ap_idle(softmax_U0_ap_idle);
      softmax_U0->ap_ready(softmax_U0_ap_ready);
      softmax_U0->data_V_address0(softmax_U0_data_V_address0);
      softmax_U0->data_V_ce0(softmax_U0_data_V_ce0);
      softmax_U0->data_V_q0(layer17_out_V_t_q0);
      softmax_U0->res_V_address0(softmax_U0_res_V_address0);
      softmax_U0->res_V_ce0(softmax_U0_res_V_ce0);
      softmax_U0->res_V_we0(softmax_U0_res_V_we0);
      softmax_U0->res_V_d0(softmax_U0_res_V_d0);
  
      SC_METHOD(thread_ap_clk_no_reset_);
      dont_initialize();
      sensitive << ( ap_clk.pos() );
  
      SC_METHOD(thread_Block_arrayctor_loop_U0_ap_continue);
      sensitive << ( ap_sync_done );
  
      SC_METHOD(thread_Block_arrayctor_loop_U0_ap_start);
      sensitive << ( ap_start );
      sensitive << ( ap_sync_reg_Block_arrayctor_loop_U0_ap_ready );
  
      SC_METHOD(thread_Block_arrayctor_loop_U0_start_full_n);
  
      SC_METHOD(thread_Block_arrayctor_loop_U0_start_write);
  
      SC_METHOD(thread_ap_channel_done_layer10_out_V);
      sensitive << ( pooling2d_cl_1_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer11_out_V);
      sensitive << ( dense_large_2_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer13_out_V);
      sensitive << ( relu_3_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer14_out_V);
      sensitive << ( dense_large_1_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer16_out_V);
      sensitive << ( relu_2_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer17_out_V);
      sensitive << ( dense_large_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer3_out_V);
      sensitive << ( conv_2d_large_cl_1_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer5_out_V);
      sensitive << ( relu_1_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer6_out_V);
      sensitive << ( pooling2d_cl_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer7_out_V);
      sensitive << ( conv_2d_large_cl_U0_ap_done );
  
      SC_METHOD(thread_ap_channel_done_layer9_out_V);
      sensitive << ( relu_U0_ap_done );
  
      SC_METHOD(thread_ap_done);
      sensitive << ( ap_sync_done );
  
      SC_METHOD(thread_ap_idle);
      sensitive << ( Block_arrayctor_loop_U0_ap_idle );
      sensitive << ( conv_2d_large_cl_1_U0_ap_idle );
      sensitive << ( relu_1_U0_ap_idle );
      sensitive << ( pooling2d_cl_U0_ap_idle );
      sensitive << ( conv_2d_large_cl_U0_ap_idle );
      sensitive << ( relu_U0_ap_idle );
      sensitive << ( pooling2d_cl_1_U0_ap_idle );
      sensitive << ( dense_large_2_U0_ap_idle );
      sensitive << ( relu_3_U0_ap_idle );
      sensitive << ( dense_large_1_U0_ap_idle );
      sensitive << ( relu_2_U0_ap_idle );
      sensitive << ( dense_large_U0_ap_idle );
      sensitive << ( softmax_U0_ap_idle );
      sensitive << ( layer3_out_V_t_empty_n );
      sensitive << ( layer5_out_V_t_empty_n );
      sensitive << ( layer6_out_V_t_empty_n );
      sensitive << ( layer7_out_V_t_empty_n );
      sensitive << ( layer9_out_V_t_empty_n );
      sensitive << ( layer10_out_V_t_empty_n );
      sensitive << ( layer11_out_V_t_empty_n );
      sensitive << ( layer13_out_V_t_empty_n );
      sensitive << ( layer14_out_V_t_empty_n );
      sensitive << ( layer16_out_V_t_empty_n );
      sensitive << ( layer17_out_V_t_empty_n );
  
      SC_METHOD(thread_ap_ready);
      sensitive << ( ap_sync_ready );
  
      SC_METHOD(thread_ap_sync_Block_arrayctor_loop_U0_ap_ready);
      sensitive << ( Block_arrayctor_loop_U0_ap_ready );
      sensitive << ( ap_sync_reg_Block_arrayctor_loop_U0_ap_ready );
  
      SC_METHOD(thread_ap_sync_continue);
      sensitive << ( ap_sync_done );
  
      SC_METHOD(thread_ap_sync_conv_2d_large_cl_1_U0_ap_ready);
      sensitive << ( conv_2d_large_cl_1_U0_ap_ready );
      sensitive << ( ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready );
  
      SC_METHOD(thread_ap_sync_done);
      sensitive << ( Block_arrayctor_loop_U0_ap_done );
      sensitive << ( softmax_U0_ap_done );
  
      SC_METHOD(thread_ap_sync_ready);
      sensitive << ( ap_sync_Block_arrayctor_loop_U0_ap_ready );
      sensitive << ( ap_sync_conv_2d_large_cl_1_U0_ap_ready );
  
      SC_METHOD(thread_const_size_in_1);
      sensitive << ( Block_arrayctor_loop_U0_const_size_in_1 );
  
      SC_METHOD(thread_const_size_in_1_ap_vld);
      sensitive << ( Block_arrayctor_loop_U0_const_size_in_1_ap_vld );
  
      SC_METHOD(thread_const_size_out_1);
      sensitive << ( Block_arrayctor_loop_U0_const_size_out_1 );
  
      SC_METHOD(thread_const_size_out_1_ap_vld);
      sensitive << ( Block_arrayctor_loop_U0_const_size_out_1_ap_vld );
  
      SC_METHOD(thread_conv_2d_large_cl_1_U0_ap_continue);
      sensitive << ( layer3_out_V_i_full_n );
  
      SC_METHOD(thread_conv_2d_large_cl_1_U0_ap_start);
      sensitive << ( ap_start );
      sensitive << ( ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready );
  
      SC_METHOD(thread_conv_2d_large_cl_1_U0_res_V_full_n);
      sensitive << ( layer3_out_V_i_full_n );
  
      SC_METHOD(thread_conv_2d_large_cl_1_U0_start_full_n);
  
      SC_METHOD(thread_conv_2d_large_cl_1_U0_start_write);
  
      SC_METHOD(thread_conv_2d_large_cl_U0_ap_continue);
      sensitive << ( layer7_out_V_i_full_n );
  
      SC_METHOD(thread_conv_2d_large_cl_U0_ap_start);
      sensitive << ( layer6_out_V_t_empty_n );
  
      SC_METHOD(thread_conv_2d_large_cl_U0_res_V_full_n);
      sensitive << ( layer7_out_V_i_full_n );
  
      SC_METHOD(thread_conv_2d_large_cl_U0_start_full_n);
  
      SC_METHOD(thread_conv_2d_large_cl_U0_start_write);
  
      SC_METHOD(thread_dense_large_1_U0_ap_continue);
      sensitive << ( layer14_out_V_i_full_n );
  
      SC_METHOD(thread_dense_large_1_U0_ap_start);
      sensitive << ( layer13_out_V_t_empty_n );
  
      SC_METHOD(thread_dense_large_1_U0_res_V_full_n);
      sensitive << ( layer14_out_V_i_full_n );
  
      SC_METHOD(thread_dense_large_1_U0_start_full_n);
  
      SC_METHOD(thread_dense_large_1_U0_start_write);
  
      SC_METHOD(thread_dense_large_2_U0_ap_continue);
      sensitive << ( layer11_out_V_i_full_n );
  
      SC_METHOD(thread_dense_large_2_U0_ap_start);
      sensitive << ( layer10_out_V_t_empty_n );
  
      SC_METHOD(thread_dense_large_2_U0_res_V_full_n);
      sensitive << ( layer11_out_V_i_full_n );
  
      SC_METHOD(thread_dense_large_2_U0_start_full_n);
  
      SC_METHOD(thread_dense_large_2_U0_start_write);
  
      SC_METHOD(thread_dense_large_U0_ap_continue);
      sensitive << ( layer17_out_V_i_full_n );
  
      SC_METHOD(thread_dense_large_U0_ap_start);
      sensitive << ( layer16_out_V_t_empty_n );
  
      SC_METHOD(thread_dense_large_U0_res_V_full_n);
      sensitive << ( layer17_out_V_i_full_n );
  
      SC_METHOD(thread_dense_large_U0_start_full_n);
  
      SC_METHOD(thread_dense_large_U0_start_write);
  
      SC_METHOD(thread_input1_V_address0);
      sensitive << ( conv_2d_large_cl_1_U0_data_V_address0 );
  
      SC_METHOD(thread_input1_V_address1);
  
      SC_METHOD(thread_input1_V_ce0);
      sensitive << ( conv_2d_large_cl_1_U0_data_V_ce0 );
  
      SC_METHOD(thread_input1_V_ce1);
  
      SC_METHOD(thread_input1_V_d0);
  
      SC_METHOD(thread_input1_V_d1);
  
      SC_METHOD(thread_input1_V_we0);
  
      SC_METHOD(thread_input1_V_we1);
  
      SC_METHOD(thread_layer19_out_V_address0);
      sensitive << ( softmax_U0_res_V_address0 );
  
      SC_METHOD(thread_layer19_out_V_address1);
  
      SC_METHOD(thread_layer19_out_V_ce0);
      sensitive << ( softmax_U0_res_V_ce0 );
  
      SC_METHOD(thread_layer19_out_V_ce1);
  
      SC_METHOD(thread_layer19_out_V_d0);
      sensitive << ( softmax_U0_res_V_d0 );
  
      SC_METHOD(thread_layer19_out_V_d1);
  
      SC_METHOD(thread_layer19_out_V_we0);
      sensitive << ( softmax_U0_res_V_we0 );
  
      SC_METHOD(thread_layer19_out_V_we1);
  
      SC_METHOD(thread_pooling2d_cl_1_U0_ap_continue);
      sensitive << ( layer10_out_V_i_full_n );
  
      SC_METHOD(thread_pooling2d_cl_1_U0_ap_start);
      sensitive << ( layer9_out_V_t_empty_n );
  
      SC_METHOD(thread_pooling2d_cl_1_U0_res_V_full_n);
      sensitive << ( layer10_out_V_i_full_n );
  
      SC_METHOD(thread_pooling2d_cl_1_U0_start_full_n);
  
      SC_METHOD(thread_pooling2d_cl_1_U0_start_write);
  
      SC_METHOD(thread_pooling2d_cl_U0_ap_continue);
      sensitive << ( layer6_out_V_i_full_n );
  
      SC_METHOD(thread_pooling2d_cl_U0_ap_start);
      sensitive << ( layer5_out_V_t_empty_n );
  
      SC_METHOD(thread_pooling2d_cl_U0_res_V_full_n);
      sensitive << ( layer6_out_V_i_full_n );
  
      SC_METHOD(thread_pooling2d_cl_U0_start_full_n);
  
      SC_METHOD(thread_pooling2d_cl_U0_start_write);
  
      SC_METHOD(thread_relu_1_U0_ap_continue);
      sensitive << ( layer5_out_V_i_full_n );
  
      SC_METHOD(thread_relu_1_U0_ap_start);
      sensitive << ( layer3_out_V_t_empty_n );
  
      SC_METHOD(thread_relu_1_U0_res_V_full_n);
      sensitive << ( layer5_out_V_i_full_n );
  
      SC_METHOD(thread_relu_1_U0_start_full_n);
  
      SC_METHOD(thread_relu_1_U0_start_write);
  
      SC_METHOD(thread_relu_2_U0_ap_continue);
      sensitive << ( layer16_out_V_i_full_n );
  
      SC_METHOD(thread_relu_2_U0_ap_start);
      sensitive << ( layer14_out_V_t_empty_n );
  
      SC_METHOD(thread_relu_2_U0_res_V_full_n);
      sensitive << ( layer16_out_V_i_full_n );
  
      SC_METHOD(thread_relu_2_U0_start_full_n);
  
      SC_METHOD(thread_relu_2_U0_start_write);
  
      SC_METHOD(thread_relu_3_U0_ap_continue);
      sensitive << ( layer13_out_V_i_full_n );
  
      SC_METHOD(thread_relu_3_U0_ap_start);
      sensitive << ( layer11_out_V_t_empty_n );
  
      SC_METHOD(thread_relu_3_U0_res_V_full_n);
      sensitive << ( layer13_out_V_i_full_n );
  
      SC_METHOD(thread_relu_3_U0_start_full_n);
  
      SC_METHOD(thread_relu_3_U0_start_write);
  
      SC_METHOD(thread_relu_U0_ap_continue);
      sensitive << ( layer9_out_V_i_full_n );
  
      SC_METHOD(thread_relu_U0_ap_start);
      sensitive << ( layer7_out_V_t_empty_n );
  
      SC_METHOD(thread_relu_U0_res_V_full_n);
      sensitive << ( layer9_out_V_i_full_n );
  
      SC_METHOD(thread_relu_U0_start_full_n);
  
      SC_METHOD(thread_relu_U0_start_write);
  
      SC_METHOD(thread_softmax_U0_ap_continue);
      sensitive << ( ap_sync_done );
  
      SC_METHOD(thread_softmax_U0_ap_start);
      sensitive << ( layer17_out_V_t_empty_n );
  
      SC_METHOD(thread_softmax_U0_start_full_n);
  
      SC_METHOD(thread_softmax_U0_start_write);
  
      SC_THREAD(thread_hdltv_gen);
      sensitive << ( ap_clk.pos() );
  
      SC_THREAD(thread_ap_var_for_const2);
  
      SC_THREAD(thread_ap_var_for_const0);
  
      SC_THREAD(thread_ap_var_for_const1);
  
      SC_THREAD(thread_ap_var_for_const3);
  
      ap_sync_reg_Block_arrayctor_loop_U0_ap_ready = SC_LOGIC_0;
      Block_arrayctor_loop_U0_ap_ready_count = "00";
      ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready = SC_LOGIC_0;
      conv_2d_large_cl_1_U0_ap_ready_count = "00";
      static int apTFileNum = 0;
      stringstream apTFilenSS;
      apTFilenSS << "myproject_sc_trace_" << apTFileNum ++;
      string apTFn = apTFilenSS.str();
      mVcdFile = sc_create_vcd_trace_file(apTFn.c_str());
      mVcdFile->set_time_unit(1, SC_PS);
      if (1) {
  #ifdef __HLS_TRACE_LEVEL_PORT__
      sc_trace(mVcdFile, ap_clk, "(port)ap_clk");
      sc_trace(mVcdFile, ap_rst, "(port)ap_rst");
      sc_trace(mVcdFile, input1_V_address0, "(port)input1_V_address0");
      sc_trace(mVcdFile, input1_V_ce0, "(port)input1_V_ce0");
      sc_trace(mVcdFile, input1_V_d0, "(port)input1_V_d0");
      sc_trace(mVcdFile, input1_V_q0, "(port)input1_V_q0");
      sc_trace(mVcdFile, input1_V_we0, "(port)input1_V_we0");
      sc_trace(mVcdFile, input1_V_address1, "(port)input1_V_address1");
      sc_trace(mVcdFile, input1_V_ce1, "(port)input1_V_ce1");
      sc_trace(mVcdFile, input1_V_d1, "(port)input1_V_d1");
      sc_trace(mVcdFile, input1_V_q1, "(port)input1_V_q1");
      sc_trace(mVcdFile, input1_V_we1, "(port)input1_V_we1");
      sc_trace(mVcdFile, layer19_out_V_address0, "(port)layer19_out_V_address0");
      sc_trace(mVcdFile, layer19_out_V_ce0, "(port)layer19_out_V_ce0");
      sc_trace(mVcdFile, layer19_out_V_d0, "(port)layer19_out_V_d0");
      sc_trace(mVcdFile, layer19_out_V_q0, "(port)layer19_out_V_q0");
      sc_trace(mVcdFile, layer19_out_V_we0, "(port)layer19_out_V_we0");
      sc_trace(mVcdFile, layer19_out_V_address1, "(port)layer19_out_V_address1");
      sc_trace(mVcdFile, layer19_out_V_ce1, "(port)layer19_out_V_ce1");
      sc_trace(mVcdFile, layer19_out_V_d1, "(port)layer19_out_V_d1");
      sc_trace(mVcdFile, layer19_out_V_q1, "(port)layer19_out_V_q1");
      sc_trace(mVcdFile, layer19_out_V_we1, "(port)layer19_out_V_we1");
      sc_trace(mVcdFile, const_size_in_1, "(port)const_size_in_1");
      sc_trace(mVcdFile, const_size_out_1, "(port)const_size_out_1");
      sc_trace(mVcdFile, const_size_in_1_ap_vld, "(port)const_size_in_1_ap_vld");
      sc_trace(mVcdFile, const_size_out_1_ap_vld, "(port)const_size_out_1_ap_vld");
      sc_trace(mVcdFile, ap_start, "(port)ap_start");
      sc_trace(mVcdFile, ap_done, "(port)ap_done");
      sc_trace(mVcdFile, ap_ready, "(port)ap_ready");
      sc_trace(mVcdFile, ap_idle, "(port)ap_idle");
  #endif
  #ifdef __HLS_TRACE_LEVEL_INT__
      sc_trace(mVcdFile, layer3_out_V_i_q0, "layer3_out_V_i_q0");
      sc_trace(mVcdFile, layer3_out_V_t_q0, "layer3_out_V_t_q0");
      sc_trace(mVcdFile, layer5_out_V_i_q0, "layer5_out_V_i_q0");
      sc_trace(mVcdFile, layer5_out_V_t_q0, "layer5_out_V_t_q0");
      sc_trace(mVcdFile, layer6_out_V_i_q0, "layer6_out_V_i_q0");
      sc_trace(mVcdFile, layer6_out_V_t_q0, "layer6_out_V_t_q0");
      sc_trace(mVcdFile, layer7_out_V_i_q0, "layer7_out_V_i_q0");
      sc_trace(mVcdFile, layer7_out_V_t_q0, "layer7_out_V_t_q0");
      sc_trace(mVcdFile, layer9_out_V_i_q0, "layer9_out_V_i_q0");
      sc_trace(mVcdFile, layer9_out_V_t_q0, "layer9_out_V_t_q0");
      sc_trace(mVcdFile, layer10_out_V_i_q0, "layer10_out_V_i_q0");
      sc_trace(mVcdFile, layer10_out_V_t_q0, "layer10_out_V_t_q0");
      sc_trace(mVcdFile, layer11_out_V_i_q0, "layer11_out_V_i_q0");
      sc_trace(mVcdFile, layer11_out_V_t_q0, "layer11_out_V_t_q0");
      sc_trace(mVcdFile, layer13_out_V_i_q0, "layer13_out_V_i_q0");
      sc_trace(mVcdFile, layer13_out_V_t_q0, "layer13_out_V_t_q0");
      sc_trace(mVcdFile, layer14_out_V_i_q0, "layer14_out_V_i_q0");
      sc_trace(mVcdFile, layer14_out_V_t_q0, "layer14_out_V_t_q0");
      sc_trace(mVcdFile, layer16_out_V_i_q0, "layer16_out_V_i_q0");
      sc_trace(mVcdFile, layer16_out_V_t_q0, "layer16_out_V_t_q0");
      sc_trace(mVcdFile, layer17_out_V_i_q0, "layer17_out_V_i_q0");
      sc_trace(mVcdFile, layer17_out_V_t_q0, "layer17_out_V_t_q0");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_ap_start, "Block_arrayctor_loop_U0_ap_start");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_ap_done, "Block_arrayctor_loop_U0_ap_done");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_ap_continue, "Block_arrayctor_loop_U0_ap_continue");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_ap_idle, "Block_arrayctor_loop_U0_ap_idle");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_ap_ready, "Block_arrayctor_loop_U0_ap_ready");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_const_size_in_1, "Block_arrayctor_loop_U0_const_size_in_1");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_const_size_in_1_ap_vld, "Block_arrayctor_loop_U0_const_size_in_1_ap_vld");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_const_size_out_1, "Block_arrayctor_loop_U0_const_size_out_1");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_const_size_out_1_ap_vld, "Block_arrayctor_loop_U0_const_size_out_1_ap_vld");
      sc_trace(mVcdFile, ap_sync_continue, "ap_sync_continue");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_ap_start, "conv_2d_large_cl_1_U0_ap_start");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_ap_done, "conv_2d_large_cl_1_U0_ap_done");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_ap_continue, "conv_2d_large_cl_1_U0_ap_continue");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_ap_idle, "conv_2d_large_cl_1_U0_ap_idle");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_ap_ready, "conv_2d_large_cl_1_U0_ap_ready");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_data_V_address0, "conv_2d_large_cl_1_U0_data_V_address0");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_data_V_ce0, "conv_2d_large_cl_1_U0_data_V_ce0");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_res_V_address0, "conv_2d_large_cl_1_U0_res_V_address0");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_res_V_ce0, "conv_2d_large_cl_1_U0_res_V_ce0");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_res_V_we0, "conv_2d_large_cl_1_U0_res_V_we0");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_res_V_d0, "conv_2d_large_cl_1_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer3_out_V, "ap_channel_done_layer3_out_V");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_res_V_full_n, "conv_2d_large_cl_1_U0_res_V_full_n");
      sc_trace(mVcdFile, relu_1_U0_ap_start, "relu_1_U0_ap_start");
      sc_trace(mVcdFile, relu_1_U0_ap_done, "relu_1_U0_ap_done");
      sc_trace(mVcdFile, relu_1_U0_ap_continue, "relu_1_U0_ap_continue");
      sc_trace(mVcdFile, relu_1_U0_ap_idle, "relu_1_U0_ap_idle");
      sc_trace(mVcdFile, relu_1_U0_ap_ready, "relu_1_U0_ap_ready");
      sc_trace(mVcdFile, relu_1_U0_data_V_address0, "relu_1_U0_data_V_address0");
      sc_trace(mVcdFile, relu_1_U0_data_V_ce0, "relu_1_U0_data_V_ce0");
      sc_trace(mVcdFile, relu_1_U0_res_V_address0, "relu_1_U0_res_V_address0");
      sc_trace(mVcdFile, relu_1_U0_res_V_ce0, "relu_1_U0_res_V_ce0");
      sc_trace(mVcdFile, relu_1_U0_res_V_we0, "relu_1_U0_res_V_we0");
      sc_trace(mVcdFile, relu_1_U0_res_V_d0, "relu_1_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer5_out_V, "ap_channel_done_layer5_out_V");
      sc_trace(mVcdFile, relu_1_U0_res_V_full_n, "relu_1_U0_res_V_full_n");
      sc_trace(mVcdFile, pooling2d_cl_U0_ap_start, "pooling2d_cl_U0_ap_start");
      sc_trace(mVcdFile, pooling2d_cl_U0_ap_done, "pooling2d_cl_U0_ap_done");
      sc_trace(mVcdFile, pooling2d_cl_U0_ap_continue, "pooling2d_cl_U0_ap_continue");
      sc_trace(mVcdFile, pooling2d_cl_U0_ap_idle, "pooling2d_cl_U0_ap_idle");
      sc_trace(mVcdFile, pooling2d_cl_U0_ap_ready, "pooling2d_cl_U0_ap_ready");
      sc_trace(mVcdFile, pooling2d_cl_U0_data_V_address0, "pooling2d_cl_U0_data_V_address0");
      sc_trace(mVcdFile, pooling2d_cl_U0_data_V_ce0, "pooling2d_cl_U0_data_V_ce0");
      sc_trace(mVcdFile, pooling2d_cl_U0_res_V_address0, "pooling2d_cl_U0_res_V_address0");
      sc_trace(mVcdFile, pooling2d_cl_U0_res_V_ce0, "pooling2d_cl_U0_res_V_ce0");
      sc_trace(mVcdFile, pooling2d_cl_U0_res_V_we0, "pooling2d_cl_U0_res_V_we0");
      sc_trace(mVcdFile, pooling2d_cl_U0_res_V_d0, "pooling2d_cl_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer6_out_V, "ap_channel_done_layer6_out_V");
      sc_trace(mVcdFile, pooling2d_cl_U0_res_V_full_n, "pooling2d_cl_U0_res_V_full_n");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_ap_start, "conv_2d_large_cl_U0_ap_start");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_ap_done, "conv_2d_large_cl_U0_ap_done");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_ap_continue, "conv_2d_large_cl_U0_ap_continue");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_ap_idle, "conv_2d_large_cl_U0_ap_idle");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_ap_ready, "conv_2d_large_cl_U0_ap_ready");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_data_V_address0, "conv_2d_large_cl_U0_data_V_address0");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_data_V_ce0, "conv_2d_large_cl_U0_data_V_ce0");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_res_V_address0, "conv_2d_large_cl_U0_res_V_address0");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_res_V_ce0, "conv_2d_large_cl_U0_res_V_ce0");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_res_V_we0, "conv_2d_large_cl_U0_res_V_we0");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_res_V_d0, "conv_2d_large_cl_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer7_out_V, "ap_channel_done_layer7_out_V");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_res_V_full_n, "conv_2d_large_cl_U0_res_V_full_n");
      sc_trace(mVcdFile, relu_U0_ap_start, "relu_U0_ap_start");
      sc_trace(mVcdFile, relu_U0_ap_done, "relu_U0_ap_done");
      sc_trace(mVcdFile, relu_U0_ap_continue, "relu_U0_ap_continue");
      sc_trace(mVcdFile, relu_U0_ap_idle, "relu_U0_ap_idle");
      sc_trace(mVcdFile, relu_U0_ap_ready, "relu_U0_ap_ready");
      sc_trace(mVcdFile, relu_U0_data_V_address0, "relu_U0_data_V_address0");
      sc_trace(mVcdFile, relu_U0_data_V_ce0, "relu_U0_data_V_ce0");
      sc_trace(mVcdFile, relu_U0_res_V_address0, "relu_U0_res_V_address0");
      sc_trace(mVcdFile, relu_U0_res_V_ce0, "relu_U0_res_V_ce0");
      sc_trace(mVcdFile, relu_U0_res_V_we0, "relu_U0_res_V_we0");
      sc_trace(mVcdFile, relu_U0_res_V_d0, "relu_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer9_out_V, "ap_channel_done_layer9_out_V");
      sc_trace(mVcdFile, relu_U0_res_V_full_n, "relu_U0_res_V_full_n");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_ap_start, "pooling2d_cl_1_U0_ap_start");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_ap_done, "pooling2d_cl_1_U0_ap_done");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_ap_continue, "pooling2d_cl_1_U0_ap_continue");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_ap_idle, "pooling2d_cl_1_U0_ap_idle");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_ap_ready, "pooling2d_cl_1_U0_ap_ready");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_data_V_address0, "pooling2d_cl_1_U0_data_V_address0");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_data_V_ce0, "pooling2d_cl_1_U0_data_V_ce0");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_res_V_address0, "pooling2d_cl_1_U0_res_V_address0");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_res_V_ce0, "pooling2d_cl_1_U0_res_V_ce0");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_res_V_we0, "pooling2d_cl_1_U0_res_V_we0");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_res_V_d0, "pooling2d_cl_1_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer10_out_V, "ap_channel_done_layer10_out_V");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_res_V_full_n, "pooling2d_cl_1_U0_res_V_full_n");
      sc_trace(mVcdFile, dense_large_2_U0_ap_start, "dense_large_2_U0_ap_start");
      sc_trace(mVcdFile, dense_large_2_U0_ap_done, "dense_large_2_U0_ap_done");
      sc_trace(mVcdFile, dense_large_2_U0_ap_continue, "dense_large_2_U0_ap_continue");
      sc_trace(mVcdFile, dense_large_2_U0_ap_idle, "dense_large_2_U0_ap_idle");
      sc_trace(mVcdFile, dense_large_2_U0_ap_ready, "dense_large_2_U0_ap_ready");
      sc_trace(mVcdFile, dense_large_2_U0_data_V_address0, "dense_large_2_U0_data_V_address0");
      sc_trace(mVcdFile, dense_large_2_U0_data_V_ce0, "dense_large_2_U0_data_V_ce0");
      sc_trace(mVcdFile, dense_large_2_U0_res_V_address0, "dense_large_2_U0_res_V_address0");
      sc_trace(mVcdFile, dense_large_2_U0_res_V_ce0, "dense_large_2_U0_res_V_ce0");
      sc_trace(mVcdFile, dense_large_2_U0_res_V_we0, "dense_large_2_U0_res_V_we0");
      sc_trace(mVcdFile, dense_large_2_U0_res_V_d0, "dense_large_2_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer11_out_V, "ap_channel_done_layer11_out_V");
      sc_trace(mVcdFile, dense_large_2_U0_res_V_full_n, "dense_large_2_U0_res_V_full_n");
      sc_trace(mVcdFile, relu_3_U0_ap_start, "relu_3_U0_ap_start");
      sc_trace(mVcdFile, relu_3_U0_ap_done, "relu_3_U0_ap_done");
      sc_trace(mVcdFile, relu_3_U0_ap_continue, "relu_3_U0_ap_continue");
      sc_trace(mVcdFile, relu_3_U0_ap_idle, "relu_3_U0_ap_idle");
      sc_trace(mVcdFile, relu_3_U0_ap_ready, "relu_3_U0_ap_ready");
      sc_trace(mVcdFile, relu_3_U0_data_V_address0, "relu_3_U0_data_V_address0");
      sc_trace(mVcdFile, relu_3_U0_data_V_ce0, "relu_3_U0_data_V_ce0");
      sc_trace(mVcdFile, relu_3_U0_res_V_address0, "relu_3_U0_res_V_address0");
      sc_trace(mVcdFile, relu_3_U0_res_V_ce0, "relu_3_U0_res_V_ce0");
      sc_trace(mVcdFile, relu_3_U0_res_V_we0, "relu_3_U0_res_V_we0");
      sc_trace(mVcdFile, relu_3_U0_res_V_d0, "relu_3_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer13_out_V, "ap_channel_done_layer13_out_V");
      sc_trace(mVcdFile, relu_3_U0_res_V_full_n, "relu_3_U0_res_V_full_n");
      sc_trace(mVcdFile, dense_large_1_U0_ap_start, "dense_large_1_U0_ap_start");
      sc_trace(mVcdFile, dense_large_1_U0_ap_done, "dense_large_1_U0_ap_done");
      sc_trace(mVcdFile, dense_large_1_U0_ap_continue, "dense_large_1_U0_ap_continue");
      sc_trace(mVcdFile, dense_large_1_U0_ap_idle, "dense_large_1_U0_ap_idle");
      sc_trace(mVcdFile, dense_large_1_U0_ap_ready, "dense_large_1_U0_ap_ready");
      sc_trace(mVcdFile, dense_large_1_U0_data_V_address0, "dense_large_1_U0_data_V_address0");
      sc_trace(mVcdFile, dense_large_1_U0_data_V_ce0, "dense_large_1_U0_data_V_ce0");
      sc_trace(mVcdFile, dense_large_1_U0_res_V_address0, "dense_large_1_U0_res_V_address0");
      sc_trace(mVcdFile, dense_large_1_U0_res_V_ce0, "dense_large_1_U0_res_V_ce0");
      sc_trace(mVcdFile, dense_large_1_U0_res_V_we0, "dense_large_1_U0_res_V_we0");
      sc_trace(mVcdFile, dense_large_1_U0_res_V_d0, "dense_large_1_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer14_out_V, "ap_channel_done_layer14_out_V");
      sc_trace(mVcdFile, dense_large_1_U0_res_V_full_n, "dense_large_1_U0_res_V_full_n");
      sc_trace(mVcdFile, relu_2_U0_ap_start, "relu_2_U0_ap_start");
      sc_trace(mVcdFile, relu_2_U0_ap_done, "relu_2_U0_ap_done");
      sc_trace(mVcdFile, relu_2_U0_ap_continue, "relu_2_U0_ap_continue");
      sc_trace(mVcdFile, relu_2_U0_ap_idle, "relu_2_U0_ap_idle");
      sc_trace(mVcdFile, relu_2_U0_ap_ready, "relu_2_U0_ap_ready");
      sc_trace(mVcdFile, relu_2_U0_data_V_address0, "relu_2_U0_data_V_address0");
      sc_trace(mVcdFile, relu_2_U0_data_V_ce0, "relu_2_U0_data_V_ce0");
      sc_trace(mVcdFile, relu_2_U0_res_V_address0, "relu_2_U0_res_V_address0");
      sc_trace(mVcdFile, relu_2_U0_res_V_ce0, "relu_2_U0_res_V_ce0");
      sc_trace(mVcdFile, relu_2_U0_res_V_we0, "relu_2_U0_res_V_we0");
      sc_trace(mVcdFile, relu_2_U0_res_V_d0, "relu_2_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer16_out_V, "ap_channel_done_layer16_out_V");
      sc_trace(mVcdFile, relu_2_U0_res_V_full_n, "relu_2_U0_res_V_full_n");
      sc_trace(mVcdFile, dense_large_U0_ap_start, "dense_large_U0_ap_start");
      sc_trace(mVcdFile, dense_large_U0_ap_done, "dense_large_U0_ap_done");
      sc_trace(mVcdFile, dense_large_U0_ap_continue, "dense_large_U0_ap_continue");
      sc_trace(mVcdFile, dense_large_U0_ap_idle, "dense_large_U0_ap_idle");
      sc_trace(mVcdFile, dense_large_U0_ap_ready, "dense_large_U0_ap_ready");
      sc_trace(mVcdFile, dense_large_U0_data_V_address0, "dense_large_U0_data_V_address0");
      sc_trace(mVcdFile, dense_large_U0_data_V_ce0, "dense_large_U0_data_V_ce0");
      sc_trace(mVcdFile, dense_large_U0_res_V_address0, "dense_large_U0_res_V_address0");
      sc_trace(mVcdFile, dense_large_U0_res_V_ce0, "dense_large_U0_res_V_ce0");
      sc_trace(mVcdFile, dense_large_U0_res_V_we0, "dense_large_U0_res_V_we0");
      sc_trace(mVcdFile, dense_large_U0_res_V_d0, "dense_large_U0_res_V_d0");
      sc_trace(mVcdFile, ap_channel_done_layer17_out_V, "ap_channel_done_layer17_out_V");
      sc_trace(mVcdFile, dense_large_U0_res_V_full_n, "dense_large_U0_res_V_full_n");
      sc_trace(mVcdFile, softmax_U0_ap_start, "softmax_U0_ap_start");
      sc_trace(mVcdFile, softmax_U0_ap_done, "softmax_U0_ap_done");
      sc_trace(mVcdFile, softmax_U0_ap_continue, "softmax_U0_ap_continue");
      sc_trace(mVcdFile, softmax_U0_ap_idle, "softmax_U0_ap_idle");
      sc_trace(mVcdFile, softmax_U0_ap_ready, "softmax_U0_ap_ready");
      sc_trace(mVcdFile, softmax_U0_data_V_address0, "softmax_U0_data_V_address0");
      sc_trace(mVcdFile, softmax_U0_data_V_ce0, "softmax_U0_data_V_ce0");
      sc_trace(mVcdFile, softmax_U0_res_V_address0, "softmax_U0_res_V_address0");
      sc_trace(mVcdFile, softmax_U0_res_V_ce0, "softmax_U0_res_V_ce0");
      sc_trace(mVcdFile, softmax_U0_res_V_we0, "softmax_U0_res_V_we0");
      sc_trace(mVcdFile, softmax_U0_res_V_d0, "softmax_U0_res_V_d0");
      sc_trace(mVcdFile, layer3_out_V_i_full_n, "layer3_out_V_i_full_n");
      sc_trace(mVcdFile, layer3_out_V_t_empty_n, "layer3_out_V_t_empty_n");
      sc_trace(mVcdFile, layer5_out_V_i_full_n, "layer5_out_V_i_full_n");
      sc_trace(mVcdFile, layer5_out_V_t_empty_n, "layer5_out_V_t_empty_n");
      sc_trace(mVcdFile, layer6_out_V_i_full_n, "layer6_out_V_i_full_n");
      sc_trace(mVcdFile, layer6_out_V_t_empty_n, "layer6_out_V_t_empty_n");
      sc_trace(mVcdFile, layer7_out_V_i_full_n, "layer7_out_V_i_full_n");
      sc_trace(mVcdFile, layer7_out_V_t_empty_n, "layer7_out_V_t_empty_n");
      sc_trace(mVcdFile, layer9_out_V_i_full_n, "layer9_out_V_i_full_n");
      sc_trace(mVcdFile, layer9_out_V_t_empty_n, "layer9_out_V_t_empty_n");
      sc_trace(mVcdFile, layer10_out_V_i_full_n, "layer10_out_V_i_full_n");
      sc_trace(mVcdFile, layer10_out_V_t_empty_n, "layer10_out_V_t_empty_n");
      sc_trace(mVcdFile, layer11_out_V_i_full_n, "layer11_out_V_i_full_n");
      sc_trace(mVcdFile, layer11_out_V_t_empty_n, "layer11_out_V_t_empty_n");
      sc_trace(mVcdFile, layer13_out_V_i_full_n, "layer13_out_V_i_full_n");
      sc_trace(mVcdFile, layer13_out_V_t_empty_n, "layer13_out_V_t_empty_n");
      sc_trace(mVcdFile, layer14_out_V_i_full_n, "layer14_out_V_i_full_n");
      sc_trace(mVcdFile, layer14_out_V_t_empty_n, "layer14_out_V_t_empty_n");
      sc_trace(mVcdFile, layer16_out_V_i_full_n, "layer16_out_V_i_full_n");
      sc_trace(mVcdFile, layer16_out_V_t_empty_n, "layer16_out_V_t_empty_n");
      sc_trace(mVcdFile, layer17_out_V_i_full_n, "layer17_out_V_i_full_n");
      sc_trace(mVcdFile, layer17_out_V_t_empty_n, "layer17_out_V_t_empty_n");
      sc_trace(mVcdFile, ap_sync_done, "ap_sync_done");
      sc_trace(mVcdFile, ap_sync_ready, "ap_sync_ready");
      sc_trace(mVcdFile, ap_sync_reg_Block_arrayctor_loop_U0_ap_ready, "ap_sync_reg_Block_arrayctor_loop_U0_ap_ready");
      sc_trace(mVcdFile, ap_sync_Block_arrayctor_loop_U0_ap_ready, "ap_sync_Block_arrayctor_loop_U0_ap_ready");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_ap_ready_count, "Block_arrayctor_loop_U0_ap_ready_count");
      sc_trace(mVcdFile, ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready, "ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready");
      sc_trace(mVcdFile, ap_sync_conv_2d_large_cl_1_U0_ap_ready, "ap_sync_conv_2d_large_cl_1_U0_ap_ready");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_ap_ready_count, "conv_2d_large_cl_1_U0_ap_ready_count");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_start_full_n, "Block_arrayctor_loop_U0_start_full_n");
      sc_trace(mVcdFile, Block_arrayctor_loop_U0_start_write, "Block_arrayctor_loop_U0_start_write");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_start_full_n, "conv_2d_large_cl_1_U0_start_full_n");
      sc_trace(mVcdFile, conv_2d_large_cl_1_U0_start_write, "conv_2d_large_cl_1_U0_start_write");
      sc_trace(mVcdFile, relu_1_U0_start_full_n, "relu_1_U0_start_full_n");
      sc_trace(mVcdFile, relu_1_U0_start_write, "relu_1_U0_start_write");
      sc_trace(mVcdFile, pooling2d_cl_U0_start_full_n, "pooling2d_cl_U0_start_full_n");
      sc_trace(mVcdFile, pooling2d_cl_U0_start_write, "pooling2d_cl_U0_start_write");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_start_full_n, "conv_2d_large_cl_U0_start_full_n");
      sc_trace(mVcdFile, conv_2d_large_cl_U0_start_write, "conv_2d_large_cl_U0_start_write");
      sc_trace(mVcdFile, relu_U0_start_full_n, "relu_U0_start_full_n");
      sc_trace(mVcdFile, relu_U0_start_write, "relu_U0_start_write");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_start_full_n, "pooling2d_cl_1_U0_start_full_n");
      sc_trace(mVcdFile, pooling2d_cl_1_U0_start_write, "pooling2d_cl_1_U0_start_write");
      sc_trace(mVcdFile, dense_large_2_U0_start_full_n, "dense_large_2_U0_start_full_n");
      sc_trace(mVcdFile, dense_large_2_U0_start_write, "dense_large_2_U0_start_write");
      sc_trace(mVcdFile, relu_3_U0_start_full_n, "relu_3_U0_start_full_n");
      sc_trace(mVcdFile, relu_3_U0_start_write, "relu_3_U0_start_write");
      sc_trace(mVcdFile, dense_large_1_U0_start_full_n, "dense_large_1_U0_start_full_n");
      sc_trace(mVcdFile, dense_large_1_U0_start_write, "dense_large_1_U0_start_write");
      sc_trace(mVcdFile, relu_2_U0_start_full_n, "relu_2_U0_start_full_n");
      sc_trace(mVcdFile, relu_2_U0_start_write, "relu_2_U0_start_write");
      sc_trace(mVcdFile, dense_large_U0_start_full_n, "dense_large_U0_start_full_n");
      sc_trace(mVcdFile, dense_large_U0_start_write, "dense_large_U0_start_write");
      sc_trace(mVcdFile, softmax_U0_start_full_n, "softmax_U0_start_full_n");
      sc_trace(mVcdFile, softmax_U0_start_write, "softmax_U0_start_write");
  #endif
  
      }
      mHdltvinHandle.open("myproject.hdltvin.dat");
      mHdltvoutHandle.open("myproject.hdltvout.dat");
  }
  
  myproject::~myproject() {
      if (mVcdFile) 
          sc_close_vcd_trace_file(mVcdFile);
  
      mHdltvinHandle << "] " << endl;
      mHdltvoutHandle << "] " << endl;
      mHdltvinHandle.close();
      mHdltvoutHandle.close();
      delete layer3_out_V_U;
      delete layer5_out_V_U;
      delete layer6_out_V_U;
      delete layer7_out_V_U;
      delete layer9_out_V_U;
      delete layer10_out_V_U;
      delete layer11_out_V_U;
      delete layer13_out_V_U;
      delete layer14_out_V_U;
      delete layer16_out_V_U;
      delete layer17_out_V_U;
      delete Block_arrayctor_loop_U0;
      delete conv_2d_large_cl_1_U0;
      delete relu_1_U0;
      delete pooling2d_cl_U0;
      delete conv_2d_large_cl_U0;
      delete relu_U0;
      delete pooling2d_cl_1_U0;
      delete dense_large_2_U0;
      delete relu_3_U0;
      delete dense_large_1_U0;
      delete relu_2_U0;
      delete dense_large_U0;
      delete softmax_U0;
  }
  
  void myproject::thread_ap_var_for_const2() {
      ap_var_for_const2 = ap_const_logic_1;
  }
  
  void myproject::thread_ap_var_for_const0() {
      ap_var_for_const0 = ap_const_logic_0;
  }
  
  void myproject::thread_ap_var_for_const1() {
      ap_var_for_const1 = ap_const_lv14_0;
  }
  
  void myproject::thread_ap_var_for_const3() {
      ap_var_for_const3 = ap_const_lv13_0;
  }
  
  void myproject::thread_ap_clk_no_reset_() {
      if ((esl_seteq<1,1,1>(ap_const_logic_0, Block_arrayctor_loop_U0_ap_ready.read()) && 
           esl_seteq<1,1,1>(ap_const_logic_1, ap_sync_ready.read()))) {
          Block_arrayctor_loop_U0_ap_ready_count = (!Block_arrayctor_loop_U0_ap_ready_count.read().is_01() || !ap_const_lv2_1.is_01())? sc_lv<2>(): (sc_biguint<2>(Block_arrayctor_loop_U0_ap_ready_count.read()) - sc_biguint<2>(ap_const_lv2_1));
      } else if ((esl_seteq<1,1,1>(ap_const_logic_1, Block_arrayctor_loop_U0_ap_ready.read()) && 
                  esl_seteq<1,1,1>(ap_const_logic_0, ap_sync_ready.read()))) {
          Block_arrayctor_loop_U0_ap_ready_count = (!Block_arrayctor_loop_U0_ap_ready_count.read().is_01() || !ap_const_lv2_1.is_01())? sc_lv<2>(): (sc_biguint<2>(Block_arrayctor_loop_U0_ap_ready_count.read()) + sc_biguint<2>(ap_const_lv2_1));
      }
      if ( ap_rst.read() == ap_const_logic_1) {
          ap_sync_reg_Block_arrayctor_loop_U0_ap_ready = ap_const_logic_0;
      } else {
          if (esl_seteq<1,1,1>(ap_const_logic_1, (ap_start.read() & 
               ap_sync_ready.read()))) {
              ap_sync_reg_Block_arrayctor_loop_U0_ap_ready = ap_const_logic_0;
          } else {
              ap_sync_reg_Block_arrayctor_loop_U0_ap_ready = ap_sync_Block_arrayctor_loop_U0_ap_ready.read();
          }
      }
      if ( ap_rst.read() == ap_const_logic_1) {
          ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready = ap_const_logic_0;
      } else {
          if (esl_seteq<1,1,1>(ap_const_logic_1, (ap_start.read() & 
               ap_sync_ready.read()))) {
              ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready = ap_const_logic_0;
          } else {
              ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready = ap_sync_conv_2d_large_cl_1_U0_ap_ready.read();
          }
      }
      if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sync_ready.read()) && 
           esl_seteq<1,1,1>(ap_const_logic_0, conv_2d_large_cl_1_U0_ap_ready.read()))) {
          conv_2d_large_cl_1_U0_ap_ready_count = (!conv_2d_large_cl_1_U0_ap_ready_count.read().is_01() || !ap_const_lv2_1.is_01())? sc_lv<2>(): (sc_biguint<2>(conv_2d_large_cl_1_U0_ap_ready_count.read()) - sc_biguint<2>(ap_const_lv2_1));
      } else if ((esl_seteq<1,1,1>(ap_const_logic_0, ap_sync_ready.read()) && 
                  esl_seteq<1,1,1>(ap_const_logic_1, conv_2d_large_cl_1_U0_ap_ready.read()))) {
          conv_2d_large_cl_1_U0_ap_ready_count = (!conv_2d_large_cl_1_U0_ap_ready_count.read().is_01() || !ap_const_lv2_1.is_01())? sc_lv<2>(): (sc_biguint<2>(conv_2d_large_cl_1_U0_ap_ready_count.read()) + sc_biguint<2>(ap_const_lv2_1));
      }
  }
  
  void myproject::thread_Block_arrayctor_loop_U0_ap_continue() {
      Block_arrayctor_loop_U0_ap_continue = ap_sync_done.read();
  }
  
  void myproject::thread_Block_arrayctor_loop_U0_ap_start() {
      Block_arrayctor_loop_U0_ap_start = (ap_start.read() & (ap_sync_reg_Block_arrayctor_loop_U0_ap_ready.read() ^ 
    ap_const_logic_1));
  }
  
  void myproject::thread_Block_arrayctor_loop_U0_start_full_n() {
      Block_arrayctor_loop_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_Block_arrayctor_loop_U0_start_write() {
      Block_arrayctor_loop_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_ap_channel_done_layer10_out_V() {
      ap_channel_done_layer10_out_V = pooling2d_cl_1_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer11_out_V() {
      ap_channel_done_layer11_out_V = dense_large_2_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer13_out_V() {
      ap_channel_done_layer13_out_V = relu_3_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer14_out_V() {
      ap_channel_done_layer14_out_V = dense_large_1_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer16_out_V() {
      ap_channel_done_layer16_out_V = relu_2_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer17_out_V() {
      ap_channel_done_layer17_out_V = dense_large_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer3_out_V() {
      ap_channel_done_layer3_out_V = conv_2d_large_cl_1_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer5_out_V() {
      ap_channel_done_layer5_out_V = relu_1_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer6_out_V() {
      ap_channel_done_layer6_out_V = pooling2d_cl_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer7_out_V() {
      ap_channel_done_layer7_out_V = conv_2d_large_cl_U0_ap_done.read();
  }
  
  void myproject::thread_ap_channel_done_layer9_out_V() {
      ap_channel_done_layer9_out_V = relu_U0_ap_done.read();
  }
  
  void myproject::thread_ap_done() {
      ap_done = ap_sync_done.read();
  }
  
  void myproject::thread_ap_idle() {
      ap_idle = (Block_arrayctor_loop_U0_ap_idle.read() & conv_2d_large_cl_1_U0_ap_idle.read() & relu_1_U0_ap_idle.read() & pooling2d_cl_U0_ap_idle.read() & conv_2d_large_cl_U0_ap_idle.read() & relu_U0_ap_idle.read() & pooling2d_cl_1_U0_ap_idle.read() & dense_large_2_U0_ap_idle.read() & relu_3_U0_ap_idle.read() & dense_large_1_U0_ap_idle.read() & relu_2_U0_ap_idle.read() & dense_large_U0_ap_idle.read() & softmax_U0_ap_idle.read() & (layer3_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer5_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer6_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer7_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer9_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer10_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer11_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer13_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer14_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer16_out_V_t_empty_n.read() ^ 
    ap_const_logic_1) & (layer17_out_V_t_empty_n.read() ^ 
    ap_const_logic_1));
  }
  
  void myproject::thread_ap_ready() {
      ap_ready = ap_sync_ready.read();
  }
  
  void myproject::thread_ap_sync_Block_arrayctor_loop_U0_ap_ready() {
      ap_sync_Block_arrayctor_loop_U0_ap_ready = (Block_arrayctor_loop_U0_ap_ready.read() | ap_sync_reg_Block_arrayctor_loop_U0_ap_ready.read());
  }
  
  void myproject::thread_ap_sync_continue() {
      ap_sync_continue = ap_sync_done.read();
  }
  
  void myproject::thread_ap_sync_conv_2d_large_cl_1_U0_ap_ready() {
      ap_sync_conv_2d_large_cl_1_U0_ap_ready = (conv_2d_large_cl_1_U0_ap_ready.read() | ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready.read());
  }
  
  void myproject::thread_ap_sync_done() {
      ap_sync_done = (Block_arrayctor_loop_U0_ap_done.read() & softmax_U0_ap_done.read());
  }
  
  void myproject::thread_ap_sync_ready() {
      ap_sync_ready = (ap_sync_Block_arrayctor_loop_U0_ap_ready.read() & ap_sync_conv_2d_large_cl_1_U0_ap_ready.read());
  }
  
  void myproject::thread_const_size_in_1() {
      const_size_in_1 = Block_arrayctor_loop_U0_const_size_in_1.read();
  }
  
  void myproject::thread_const_size_in_1_ap_vld() {
      const_size_in_1_ap_vld = Block_arrayctor_loop_U0_const_size_in_1_ap_vld.read();
  }
  
  void myproject::thread_const_size_out_1() {
      const_size_out_1 = Block_arrayctor_loop_U0_const_size_out_1.read();
  }
  
  void myproject::thread_const_size_out_1_ap_vld() {
      const_size_out_1_ap_vld = Block_arrayctor_loop_U0_const_size_out_1_ap_vld.read();
  }
  
  void myproject::thread_conv_2d_large_cl_1_U0_ap_continue() {
      conv_2d_large_cl_1_U0_ap_continue = layer3_out_V_i_full_n.read();
  }
  
  void myproject::thread_conv_2d_large_cl_1_U0_ap_start() {
      conv_2d_large_cl_1_U0_ap_start = (ap_start.read() & (ap_sync_reg_conv_2d_large_cl_1_U0_ap_ready.read() ^ 
    ap_const_logic_1));
  }
  
  void myproject::thread_conv_2d_large_cl_1_U0_res_V_full_n() {
      conv_2d_large_cl_1_U0_res_V_full_n = layer3_out_V_i_full_n.read();
  }
  
  void myproject::thread_conv_2d_large_cl_1_U0_start_full_n() {
      conv_2d_large_cl_1_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_conv_2d_large_cl_1_U0_start_write() {
      conv_2d_large_cl_1_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_conv_2d_large_cl_U0_ap_continue() {
      conv_2d_large_cl_U0_ap_continue = layer7_out_V_i_full_n.read();
  }
  
  void myproject::thread_conv_2d_large_cl_U0_ap_start() {
      conv_2d_large_cl_U0_ap_start = layer6_out_V_t_empty_n.read();
  }
  
  void myproject::thread_conv_2d_large_cl_U0_res_V_full_n() {
      conv_2d_large_cl_U0_res_V_full_n = layer7_out_V_i_full_n.read();
  }
  
  void myproject::thread_conv_2d_large_cl_U0_start_full_n() {
      conv_2d_large_cl_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_conv_2d_large_cl_U0_start_write() {
      conv_2d_large_cl_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_dense_large_1_U0_ap_continue() {
      dense_large_1_U0_ap_continue = layer14_out_V_i_full_n.read();
  }
  
  void myproject::thread_dense_large_1_U0_ap_start() {
      dense_large_1_U0_ap_start = layer13_out_V_t_empty_n.read();
  }
  
  void myproject::thread_dense_large_1_U0_res_V_full_n() {
      dense_large_1_U0_res_V_full_n = layer14_out_V_i_full_n.read();
  }
  
  void myproject::thread_dense_large_1_U0_start_full_n() {
      dense_large_1_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_dense_large_1_U0_start_write() {
      dense_large_1_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_dense_large_2_U0_ap_continue() {
      dense_large_2_U0_ap_continue = layer11_out_V_i_full_n.read();
  }
  
  void myproject::thread_dense_large_2_U0_ap_start() {
      dense_large_2_U0_ap_start = layer10_out_V_t_empty_n.read();
  }
  
  void myproject::thread_dense_large_2_U0_res_V_full_n() {
      dense_large_2_U0_res_V_full_n = layer11_out_V_i_full_n.read();
  }
  
  void myproject::thread_dense_large_2_U0_start_full_n() {
      dense_large_2_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_dense_large_2_U0_start_write() {
      dense_large_2_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_dense_large_U0_ap_continue() {
      dense_large_U0_ap_continue = layer17_out_V_i_full_n.read();
  }
  
  void myproject::thread_dense_large_U0_ap_start() {
      dense_large_U0_ap_start = layer16_out_V_t_empty_n.read();
  }
  
  void myproject::thread_dense_large_U0_res_V_full_n() {
      dense_large_U0_res_V_full_n = layer17_out_V_i_full_n.read();
  }
  
  void myproject::thread_dense_large_U0_start_full_n() {
      dense_large_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_dense_large_U0_start_write() {
      dense_large_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_input1_V_address0() {
      input1_V_address0 = conv_2d_large_cl_1_U0_data_V_address0.read();
  }
  
  void myproject::thread_input1_V_address1() {
      input1_V_address1 = ap_const_lv10_0;
  }
  
  void myproject::thread_input1_V_ce0() {
      input1_V_ce0 = conv_2d_large_cl_1_U0_data_V_ce0.read();
  }
  
  void myproject::thread_input1_V_ce1() {
      input1_V_ce1 = ap_const_logic_0;
  }
  
  void myproject::thread_input1_V_d0() {
      input1_V_d0 = ap_const_lv14_0;
  }
  
  void myproject::thread_input1_V_d1() {
      input1_V_d1 = ap_const_lv14_0;
  }
  
  void myproject::thread_input1_V_we0() {
      input1_V_we0 = ap_const_logic_0;
  }
  
  void myproject::thread_input1_V_we1() {
      input1_V_we1 = ap_const_logic_0;
  }
  
  void myproject::thread_layer19_out_V_address0() {
      layer19_out_V_address0 = softmax_U0_res_V_address0.read();
  }
  
  void myproject::thread_layer19_out_V_address1() {
      layer19_out_V_address1 = ap_const_lv4_0;
  }
  
  void myproject::thread_layer19_out_V_ce0() {
      layer19_out_V_ce0 = softmax_U0_res_V_ce0.read();
  }
  
  void myproject::thread_layer19_out_V_ce1() {
      layer19_out_V_ce1 = ap_const_logic_0;
  }
  
  void myproject::thread_layer19_out_V_d0() {
      layer19_out_V_d0 = softmax_U0_res_V_d0.read();
  }
  
  void myproject::thread_layer19_out_V_d1() {
      layer19_out_V_d1 = ap_const_lv14_0;
  }
  
  void myproject::thread_layer19_out_V_we0() {
      layer19_out_V_we0 = softmax_U0_res_V_we0.read();
  }
  
  void myproject::thread_layer19_out_V_we1() {
      layer19_out_V_we1 = ap_const_logic_0;
  }
  
  void myproject::thread_pooling2d_cl_1_U0_ap_continue() {
      pooling2d_cl_1_U0_ap_continue = layer10_out_V_i_full_n.read();
  }
  
  void myproject::thread_pooling2d_cl_1_U0_ap_start() {
      pooling2d_cl_1_U0_ap_start = layer9_out_V_t_empty_n.read();
  }
  
  void myproject::thread_pooling2d_cl_1_U0_res_V_full_n() {
      pooling2d_cl_1_U0_res_V_full_n = layer10_out_V_i_full_n.read();
  }
  
  void myproject::thread_pooling2d_cl_1_U0_start_full_n() {
      pooling2d_cl_1_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_pooling2d_cl_1_U0_start_write() {
      pooling2d_cl_1_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_pooling2d_cl_U0_ap_continue() {
      pooling2d_cl_U0_ap_continue = layer6_out_V_i_full_n.read();
  }
  
  void myproject::thread_pooling2d_cl_U0_ap_start() {
      pooling2d_cl_U0_ap_start = layer5_out_V_t_empty_n.read();
  }
  
  void myproject::thread_pooling2d_cl_U0_res_V_full_n() {
      pooling2d_cl_U0_res_V_full_n = layer6_out_V_i_full_n.read();
  }
  
  void myproject::thread_pooling2d_cl_U0_start_full_n() {
      pooling2d_cl_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_pooling2d_cl_U0_start_write() {
      pooling2d_cl_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_relu_1_U0_ap_continue() {
      relu_1_U0_ap_continue = layer5_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_1_U0_ap_start() {
      relu_1_U0_ap_start = layer3_out_V_t_empty_n.read();
  }
  
  void myproject::thread_relu_1_U0_res_V_full_n() {
      relu_1_U0_res_V_full_n = layer5_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_1_U0_start_full_n() {
      relu_1_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_relu_1_U0_start_write() {
      relu_1_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_relu_2_U0_ap_continue() {
      relu_2_U0_ap_continue = layer16_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_2_U0_ap_start() {
      relu_2_U0_ap_start = layer14_out_V_t_empty_n.read();
  }
  
  void myproject::thread_relu_2_U0_res_V_full_n() {
      relu_2_U0_res_V_full_n = layer16_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_2_U0_start_full_n() {
      relu_2_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_relu_2_U0_start_write() {
      relu_2_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_relu_3_U0_ap_continue() {
      relu_3_U0_ap_continue = layer13_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_3_U0_ap_start() {
      relu_3_U0_ap_start = layer11_out_V_t_empty_n.read();
  }
  
  void myproject::thread_relu_3_U0_res_V_full_n() {
      relu_3_U0_res_V_full_n = layer13_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_3_U0_start_full_n() {
      relu_3_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_relu_3_U0_start_write() {
      relu_3_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_relu_U0_ap_continue() {
      relu_U0_ap_continue = layer9_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_U0_ap_start() {
      relu_U0_ap_start = layer7_out_V_t_empty_n.read();
  }
  
  void myproject::thread_relu_U0_res_V_full_n() {
      relu_U0_res_V_full_n = layer9_out_V_i_full_n.read();
  }
  
  void myproject::thread_relu_U0_start_full_n() {
      relu_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_relu_U0_start_write() {
      relu_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_softmax_U0_ap_continue() {
      softmax_U0_ap_continue = ap_sync_done.read();
  }
  
  void myproject::thread_softmax_U0_ap_start() {
      softmax_U0_ap_start = layer17_out_V_t_empty_n.read();
  }
  
  void myproject::thread_softmax_U0_start_full_n() {
      softmax_U0_start_full_n = ap_const_logic_1;
  }
  
  void myproject::thread_softmax_U0_start_write() {
      softmax_U0_start_write = ap_const_logic_0;
  }
  
  void myproject::thread_hdltv_gen() {
      const char* dump_tv = std::getenv("AP_WRITE_TV");
      if (!(dump_tv && string(dump_tv) == "on")) return;
  
      wait();
  
      mHdltvinHandle << "[ " << endl;
      mHdltvoutHandle << "[ " << endl;
      int ap_cycleNo = 0;
      while (1) {
          wait();
          const char* mComma = ap_cycleNo == 0 ? " " : ", " ;
          mHdltvinHandle << mComma << "{"  <<  " \"ap_rst\" :  \"" << ap_rst.read() << "\" ";
          mHdltvoutHandle << mComma << "{"  <<  " \"input1_V_address0\" :  \"" << input1_V_address0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_ce0\" :  \"" << input1_V_ce0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_d0\" :  \"" << input1_V_d0.read() << "\" ";
          mHdltvinHandle << " , " <<  " \"input1_V_q0\" :  \"" << input1_V_q0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_we0\" :  \"" << input1_V_we0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_address1\" :  \"" << input1_V_address1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_ce1\" :  \"" << input1_V_ce1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_d1\" :  \"" << input1_V_d1.read() << "\" ";
          mHdltvinHandle << " , " <<  " \"input1_V_q1\" :  \"" << input1_V_q1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"input1_V_we1\" :  \"" << input1_V_we1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_address0\" :  \"" << layer19_out_V_address0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_ce0\" :  \"" << layer19_out_V_ce0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_d0\" :  \"" << layer19_out_V_d0.read() << "\" ";
          mHdltvinHandle << " , " <<  " \"layer19_out_V_q0\" :  \"" << layer19_out_V_q0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_we0\" :  \"" << layer19_out_V_we0.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_address1\" :  \"" << layer19_out_V_address1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_ce1\" :  \"" << layer19_out_V_ce1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_d1\" :  \"" << layer19_out_V_d1.read() << "\" ";
          mHdltvinHandle << " , " <<  " \"layer19_out_V_q1\" :  \"" << layer19_out_V_q1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"layer19_out_V_we1\" :  \"" << layer19_out_V_we1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"const_size_in_1\" :  \"" << const_size_in_1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"const_size_out_1\" :  \"" << const_size_out_1.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"const_size_in_1_ap_vld\" :  \"" << const_size_in_1_ap_vld.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"const_size_out_1_ap_vld\" :  \"" << const_size_out_1_ap_vld.read() << "\" ";
          mHdltvinHandle << " , " <<  " \"ap_start\" :  \"" << ap_start.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"ap_done\" :  \"" << ap_done.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"ap_ready\" :  \"" << ap_ready.read() << "\" ";
          mHdltvoutHandle << " , " <<  " \"ap_idle\" :  \"" << ap_idle.read() << "\" ";
          mHdltvinHandle << "}" << std::endl;
          mHdltvoutHandle << "}" << std::endl;
          ap_cycleNo++;
      }
  }
  
  }
  
  