// ==============================================================
// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2016.2
// Copyright (C) 1986-2016 Xilinx, Inc. All Rights Reserved.
// 
// ===========================================================

#include "lcddrv_init_lcd.h"
#include "AESL_pkg.h"

using namespace std;

namespace ap_rtl {

const sc_logic lcddrv_init_lcd::ap_const_logic_1 = sc_dt::Log_1;
const sc_logic lcddrv_init_lcd::ap_const_logic_0 = sc_dt::Log_0;
const sc_lv<40> lcddrv_init_lcd::ap_ST_st1_fsm_0 = "1";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st2_fsm_1 = "10";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st3_fsm_2 = "100";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st4_fsm_3 = "1000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st5_fsm_4 = "10000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st6_fsm_5 = "100000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st7_fsm_6 = "1000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st8_fsm_7 = "10000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st9_fsm_8 = "100000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st10_fsm_9 = "1000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st11_fsm_10 = "10000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st12_fsm_11 = "100000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st13_fsm_12 = "1000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st14_fsm_13 = "10000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st15_fsm_14 = "100000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st16_fsm_15 = "1000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st17_fsm_16 = "10000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st18_fsm_17 = "100000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st19_fsm_18 = "1000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st20_fsm_19 = "10000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st21_fsm_20 = "100000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st22_fsm_21 = "1000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st23_fsm_22 = "10000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st24_fsm_23 = "100000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st25_fsm_24 = "1000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st26_fsm_25 = "10000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st27_fsm_26 = "100000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st28_fsm_27 = "1000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st29_fsm_28 = "10000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st30_fsm_29 = "100000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st31_fsm_30 = "1000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st32_fsm_31 = "10000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st33_fsm_32 = "100000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st34_fsm_33 = "1000000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st35_fsm_34 = "10000000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st36_fsm_35 = "100000000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st37_fsm_36 = "1000000000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st38_fsm_37 = "10000000000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st39_fsm_38 = "100000000000000000000000000000000000000";
const sc_lv<40> lcddrv_init_lcd::ap_ST_st40_fsm_39 = "1000000000000000000000000000000000000000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_0 = "00000000000000000000000000000000";
const sc_lv<1> lcddrv_init_lcd::ap_const_lv1_1 = "1";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_2 = "10";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_6 = "110";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_A = "1010";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_E = "1110";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_10 = "10000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_12 = "10010";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_16 = "10110";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_18 = "11000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1C = "11100";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1E = "11110";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_22 = "100010";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_24 = "100100";
const sc_lv<1> lcddrv_init_lcd::ap_const_lv1_0 = "0";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_3 = "11";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_7 = "111";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_B = "1011";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_F = "1111";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_11 = "10001";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_13 = "10011";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_17 = "10111";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_19 = "11001";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1D = "11101";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1F = "11111";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_23 = "100011";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_25 = "100101";
const sc_lv<4> lcddrv_init_lcd::ap_const_lv4_3 = "11";
const sc_lv<4> lcddrv_init_lcd::ap_const_lv4_2 = "10";
const sc_lv<4> lcddrv_init_lcd::ap_const_lv4_8 = "1000";
const sc_lv<4> lcddrv_init_lcd::ap_const_lv4_0 = "0000";
const sc_lv<4> lcddrv_init_lcd::ap_const_lv4_C = "1100";
const sc_lv<4> lcddrv_init_lcd::ap_const_lv4_1 = "1";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_4 = "100";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_8 = "1000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_C = "1100";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_14 = "10100";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1A = "11010";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_20 = "100000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_26 = "100110";
const sc_lv<25> lcddrv_init_lcd::ap_const_lv25_1E8480 = "111101000010010000000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1 = "1";
const sc_lv<25> lcddrv_init_lcd::ap_const_lv25_7A120 = "1111010000100100000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_5 = "101";
const sc_lv<25> lcddrv_init_lcd::ap_const_lv25_C350 = "1100001101010000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_9 = "1001";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_D = "1101";
const sc_lv<25> lcddrv_init_lcd::ap_const_lv25_2710 = "10011100010000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_15 = "10101";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_1B = "11011";
const sc_lv<25> lcddrv_init_lcd::ap_const_lv25_30D40 = "110000110101000000";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_21 = "100001";
const sc_lv<32> lcddrv_init_lcd::ap_const_lv32_27 = "100111";

lcddrv_init_lcd::lcddrv_init_lcd(sc_module_name name) : sc_module(name), mVcdFile(0) {
    grp_lcddrv_lcd_send_cmd_fu_36 = new lcddrv_lcd_send_cmd("grp_lcddrv_lcd_send_cmd_fu_36");
    grp_lcddrv_lcd_send_cmd_fu_36->ap_clk(ap_clk);
    grp_lcddrv_lcd_send_cmd_fu_36->ap_rst(ap_rst);
    grp_lcddrv_lcd_send_cmd_fu_36->ap_start(grp_lcddrv_lcd_send_cmd_fu_36_ap_start);
    grp_lcddrv_lcd_send_cmd_fu_36->ap_done(grp_lcddrv_lcd_send_cmd_fu_36_ap_done);
    grp_lcddrv_lcd_send_cmd_fu_36->ap_idle(grp_lcddrv_lcd_send_cmd_fu_36_ap_idle);
    grp_lcddrv_lcd_send_cmd_fu_36->ap_ready(grp_lcddrv_lcd_send_cmd_fu_36_ap_ready);
    grp_lcddrv_lcd_send_cmd_fu_36->mode(ap_var_for_const0);
    grp_lcddrv_lcd_send_cmd_fu_36->wd(grp_lcddrv_lcd_send_cmd_fu_36_wd);
    grp_lcddrv_lcd_send_cmd_fu_36->en(grp_lcddrv_lcd_send_cmd_fu_36_en);
    grp_lcddrv_lcd_send_cmd_fu_36->en_ap_vld(grp_lcddrv_lcd_send_cmd_fu_36_en_ap_vld);
    grp_lcddrv_lcd_send_cmd_fu_36->dummy_tmr_out_i(dummy_tmr_out_i);
    grp_lcddrv_lcd_send_cmd_fu_36->dummy_tmr_out_o(grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o);
    grp_lcddrv_lcd_send_cmd_fu_36->dummy_tmr_out_o_ap_vld(grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld);
    grp_lcddrv_lcd_send_cmd_fu_36->rs(grp_lcddrv_lcd_send_cmd_fu_36_rs);
    grp_lcddrv_lcd_send_cmd_fu_36->rs_ap_vld(grp_lcddrv_lcd_send_cmd_fu_36_rs_ap_vld);
    grp_lcddrv_lcd_send_cmd_fu_36->data(grp_lcddrv_lcd_send_cmd_fu_36_data);
    grp_lcddrv_lcd_send_cmd_fu_36->data_ap_vld(grp_lcddrv_lcd_send_cmd_fu_36_data_ap_vld);
    grp_lcddrv_wait_tmr_fu_57 = new lcddrv_wait_tmr("grp_lcddrv_wait_tmr_fu_57");
    grp_lcddrv_wait_tmr_fu_57->ap_clk(ap_clk);
    grp_lcddrv_wait_tmr_fu_57->ap_rst(ap_rst);
    grp_lcddrv_wait_tmr_fu_57->ap_start(grp_lcddrv_wait_tmr_fu_57_ap_start);
    grp_lcddrv_wait_tmr_fu_57->ap_done(grp_lcddrv_wait_tmr_fu_57_ap_done);
    grp_lcddrv_wait_tmr_fu_57->ap_idle(grp_lcddrv_wait_tmr_fu_57_ap_idle);
    grp_lcddrv_wait_tmr_fu_57->ap_ready(grp_lcddrv_wait_tmr_fu_57_ap_ready);
    grp_lcddrv_wait_tmr_fu_57->tmr(grp_lcddrv_wait_tmr_fu_57_tmr);
    grp_lcddrv_wait_tmr_fu_57->dummy_tmr_out_i(dummy_tmr_out_i);
    grp_lcddrv_wait_tmr_fu_57->dummy_tmr_out_o(grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o);
    grp_lcddrv_wait_tmr_fu_57->dummy_tmr_out_o_ap_vld(grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld);

    SC_METHOD(thread_ap_clk_no_reset_);
    dont_initialize();
    sensitive << ( ap_clk.pos() );

    SC_METHOD(thread_ap_done);
    sensitive << ( ap_start );
    sensitive << ( ap_sig_cseq_ST_st1_fsm_0 );
    sensitive << ( grp_lcddrv_wait_tmr_fu_57_ap_done );
    sensitive << ( ap_sig_cseq_ST_st40_fsm_39 );

    SC_METHOD(thread_ap_idle);
    sensitive << ( ap_start );
    sensitive << ( ap_sig_cseq_ST_st1_fsm_0 );

    SC_METHOD(thread_ap_ready);
    sensitive << ( grp_lcddrv_wait_tmr_fu_57_ap_done );
    sensitive << ( ap_sig_cseq_ST_st40_fsm_39 );

    SC_METHOD(thread_ap_sig_105);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_112);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_120);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_128);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_136);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_144);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_152);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_160);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_168);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_176);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_184);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_192);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_201);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_208);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_216);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_224);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_232);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_240);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_248);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_256);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_264);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_272);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_280);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_288);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_407);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_415);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_423);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_431);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_439);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_447);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_455);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_464);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_472);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_480);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_487);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_496);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_503);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_512);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_519);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_57);
    sensitive << ( ap_CS_fsm );

    SC_METHOD(thread_ap_sig_cseq_ST_st10_fsm_9);
    sensitive << ( ap_sig_480 );

    SC_METHOD(thread_ap_sig_cseq_ST_st11_fsm_10);
    sensitive << ( ap_sig_120 );

    SC_METHOD(thread_ap_sig_cseq_ST_st12_fsm_11);
    sensitive << ( ap_sig_216 );

    SC_METHOD(thread_ap_sig_cseq_ST_st13_fsm_12);
    sensitive << ( ap_sig_423 );

    SC_METHOD(thread_ap_sig_cseq_ST_st14_fsm_13);
    sensitive << ( ap_sig_487 );

    SC_METHOD(thread_ap_sig_cseq_ST_st15_fsm_14);
    sensitive << ( ap_sig_128 );

    SC_METHOD(thread_ap_sig_cseq_ST_st16_fsm_15);
    sensitive << ( ap_sig_224 );

    SC_METHOD(thread_ap_sig_cseq_ST_st17_fsm_16);
    sensitive << ( ap_sig_136 );

    SC_METHOD(thread_ap_sig_cseq_ST_st18_fsm_17);
    sensitive << ( ap_sig_232 );

    SC_METHOD(thread_ap_sig_cseq_ST_st19_fsm_18);
    sensitive << ( ap_sig_144 );

    SC_METHOD(thread_ap_sig_cseq_ST_st1_fsm_0);
    sensitive << ( ap_sig_57 );

    SC_METHOD(thread_ap_sig_cseq_ST_st20_fsm_19);
    sensitive << ( ap_sig_240 );

    SC_METHOD(thread_ap_sig_cseq_ST_st21_fsm_20);
    sensitive << ( ap_sig_431 );

    SC_METHOD(thread_ap_sig_cseq_ST_st22_fsm_21);
    sensitive << ( ap_sig_496 );

    SC_METHOD(thread_ap_sig_cseq_ST_st23_fsm_22);
    sensitive << ( ap_sig_152 );

    SC_METHOD(thread_ap_sig_cseq_ST_st24_fsm_23);
    sensitive << ( ap_sig_248 );

    SC_METHOD(thread_ap_sig_cseq_ST_st25_fsm_24);
    sensitive << ( ap_sig_160 );

    SC_METHOD(thread_ap_sig_cseq_ST_st26_fsm_25);
    sensitive << ( ap_sig_256 );

    SC_METHOD(thread_ap_sig_cseq_ST_st27_fsm_26);
    sensitive << ( ap_sig_439 );

    SC_METHOD(thread_ap_sig_cseq_ST_st28_fsm_27);
    sensitive << ( ap_sig_503 );

    SC_METHOD(thread_ap_sig_cseq_ST_st29_fsm_28);
    sensitive << ( ap_sig_168 );

    SC_METHOD(thread_ap_sig_cseq_ST_st2_fsm_1);
    sensitive << ( ap_sig_464 );

    SC_METHOD(thread_ap_sig_cseq_ST_st30_fsm_29);
    sensitive << ( ap_sig_264 );

    SC_METHOD(thread_ap_sig_cseq_ST_st31_fsm_30);
    sensitive << ( ap_sig_176 );

    SC_METHOD(thread_ap_sig_cseq_ST_st32_fsm_31);
    sensitive << ( ap_sig_272 );

    SC_METHOD(thread_ap_sig_cseq_ST_st33_fsm_32);
    sensitive << ( ap_sig_447 );

    SC_METHOD(thread_ap_sig_cseq_ST_st34_fsm_33);
    sensitive << ( ap_sig_512 );

    SC_METHOD(thread_ap_sig_cseq_ST_st35_fsm_34);
    sensitive << ( ap_sig_184 );

    SC_METHOD(thread_ap_sig_cseq_ST_st36_fsm_35);
    sensitive << ( ap_sig_280 );

    SC_METHOD(thread_ap_sig_cseq_ST_st37_fsm_36);
    sensitive << ( ap_sig_192 );

    SC_METHOD(thread_ap_sig_cseq_ST_st38_fsm_37);
    sensitive << ( ap_sig_288 );

    SC_METHOD(thread_ap_sig_cseq_ST_st39_fsm_38);
    sensitive << ( ap_sig_455 );

    SC_METHOD(thread_ap_sig_cseq_ST_st3_fsm_2);
    sensitive << ( ap_sig_105 );

    SC_METHOD(thread_ap_sig_cseq_ST_st40_fsm_39);
    sensitive << ( ap_sig_519 );

    SC_METHOD(thread_ap_sig_cseq_ST_st4_fsm_3);
    sensitive << ( ap_sig_201 );

    SC_METHOD(thread_ap_sig_cseq_ST_st5_fsm_4);
    sensitive << ( ap_sig_407 );

    SC_METHOD(thread_ap_sig_cseq_ST_st6_fsm_5);
    sensitive << ( ap_sig_472 );

    SC_METHOD(thread_ap_sig_cseq_ST_st7_fsm_6);
    sensitive << ( ap_sig_112 );

    SC_METHOD(thread_ap_sig_cseq_ST_st8_fsm_7);
    sensitive << ( ap_sig_208 );

    SC_METHOD(thread_ap_sig_cseq_ST_st9_fsm_8);
    sensitive << ( ap_sig_415 );

    SC_METHOD(thread_data);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_data );
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_data_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_data_ap_vld);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_data_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_dummy_tmr_out_o);
    sensitive << ( dummy_tmr_out_i );
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o );
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld );
    sensitive << ( grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o );
    sensitive << ( grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );
    sensitive << ( ap_sig_cseq_ST_st2_fsm_1 );
    sensitive << ( ap_sig_cseq_ST_st6_fsm_5 );
    sensitive << ( ap_sig_cseq_ST_st10_fsm_9 );
    sensitive << ( ap_sig_cseq_ST_st14_fsm_13 );
    sensitive << ( ap_sig_cseq_ST_st22_fsm_21 );
    sensitive << ( ap_sig_cseq_ST_st28_fsm_27 );
    sensitive << ( ap_sig_cseq_ST_st34_fsm_33 );
    sensitive << ( ap_sig_cseq_ST_st40_fsm_39 );

    SC_METHOD(thread_dummy_tmr_out_o_ap_vld);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld );
    sensitive << ( grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );
    sensitive << ( ap_sig_cseq_ST_st2_fsm_1 );
    sensitive << ( ap_sig_cseq_ST_st6_fsm_5 );
    sensitive << ( ap_sig_cseq_ST_st10_fsm_9 );
    sensitive << ( ap_sig_cseq_ST_st14_fsm_13 );
    sensitive << ( ap_sig_cseq_ST_st22_fsm_21 );
    sensitive << ( ap_sig_cseq_ST_st28_fsm_27 );
    sensitive << ( ap_sig_cseq_ST_st34_fsm_33 );
    sensitive << ( ap_sig_cseq_ST_st40_fsm_39 );

    SC_METHOD(thread_en);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_en );
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_en_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_en_ap_vld);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_en_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_grp_lcddrv_lcd_send_cmd_fu_36_ap_start);
    sensitive << ( ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start );

    SC_METHOD(thread_grp_lcddrv_lcd_send_cmd_fu_36_wd);
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_grp_lcddrv_wait_tmr_fu_57_ap_start);
    sensitive << ( ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start );

    SC_METHOD(thread_grp_lcddrv_wait_tmr_fu_57_tmr);
    sensitive << ( ap_sig_cseq_ST_st2_fsm_1 );
    sensitive << ( ap_sig_cseq_ST_st6_fsm_5 );
    sensitive << ( ap_sig_cseq_ST_st10_fsm_9 );
    sensitive << ( ap_sig_cseq_ST_st14_fsm_13 );
    sensitive << ( ap_sig_cseq_ST_st22_fsm_21 );
    sensitive << ( ap_sig_cseq_ST_st28_fsm_27 );
    sensitive << ( ap_sig_cseq_ST_st34_fsm_33 );
    sensitive << ( ap_sig_cseq_ST_st40_fsm_39 );

    SC_METHOD(thread_rs);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_rs );
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_rs_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_rs_ap_vld);
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_rs_ap_vld );
    sensitive << ( ap_sig_cseq_ST_st4_fsm_3 );
    sensitive << ( ap_sig_cseq_ST_st8_fsm_7 );
    sensitive << ( ap_sig_cseq_ST_st12_fsm_11 );
    sensitive << ( ap_sig_cseq_ST_st16_fsm_15 );
    sensitive << ( ap_sig_cseq_ST_st18_fsm_17 );
    sensitive << ( ap_sig_cseq_ST_st20_fsm_19 );
    sensitive << ( ap_sig_cseq_ST_st24_fsm_23 );
    sensitive << ( ap_sig_cseq_ST_st26_fsm_25 );
    sensitive << ( ap_sig_cseq_ST_st30_fsm_29 );
    sensitive << ( ap_sig_cseq_ST_st32_fsm_31 );
    sensitive << ( ap_sig_cseq_ST_st36_fsm_35 );
    sensitive << ( ap_sig_cseq_ST_st38_fsm_37 );

    SC_METHOD(thread_ap_NS_fsm);
    sensitive << ( ap_start );
    sensitive << ( ap_CS_fsm );
    sensitive << ( grp_lcddrv_lcd_send_cmd_fu_36_ap_done );
    sensitive << ( grp_lcddrv_wait_tmr_fu_57_ap_done );

    SC_THREAD(thread_ap_var_for_const0);

    ap_CS_fsm = "0000000000000000000000000000000000000001";
    ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start = SC_LOGIC_0;
    ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start = SC_LOGIC_0;
    static int apTFileNum = 0;
    stringstream apTFilenSS;
    apTFilenSS << "lcddrv_init_lcd_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_HIER__
    sc_trace(mVcdFile, ap_clk, "(port)ap_clk");
    sc_trace(mVcdFile, ap_rst, "(port)ap_rst");
    sc_trace(mVcdFile, ap_start, "(port)ap_start");
    sc_trace(mVcdFile, ap_done, "(port)ap_done");
    sc_trace(mVcdFile, ap_idle, "(port)ap_idle");
    sc_trace(mVcdFile, ap_ready, "(port)ap_ready");
    sc_trace(mVcdFile, dummy_tmr_out_i, "(port)dummy_tmr_out_i");
    sc_trace(mVcdFile, dummy_tmr_out_o, "(port)dummy_tmr_out_o");
    sc_trace(mVcdFile, dummy_tmr_out_o_ap_vld, "(port)dummy_tmr_out_o_ap_vld");
    sc_trace(mVcdFile, en, "(port)en");
    sc_trace(mVcdFile, en_ap_vld, "(port)en_ap_vld");
    sc_trace(mVcdFile, rs, "(port)rs");
    sc_trace(mVcdFile, rs_ap_vld, "(port)rs_ap_vld");
    sc_trace(mVcdFile, data, "(port)data");
    sc_trace(mVcdFile, data_ap_vld, "(port)data_ap_vld");
#endif
#ifdef __HLS_TRACE_LEVEL_INT__
    sc_trace(mVcdFile, ap_CS_fsm, "ap_CS_fsm");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st1_fsm_0, "ap_sig_cseq_ST_st1_fsm_0");
    sc_trace(mVcdFile, ap_sig_57, "ap_sig_57");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_ap_start, "grp_lcddrv_lcd_send_cmd_fu_36_ap_start");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_ap_done, "grp_lcddrv_lcd_send_cmd_fu_36_ap_done");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_ap_idle, "grp_lcddrv_lcd_send_cmd_fu_36_ap_idle");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_ap_ready, "grp_lcddrv_lcd_send_cmd_fu_36_ap_ready");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_wd, "grp_lcddrv_lcd_send_cmd_fu_36_wd");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_en, "grp_lcddrv_lcd_send_cmd_fu_36_en");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_en_ap_vld, "grp_lcddrv_lcd_send_cmd_fu_36_en_ap_vld");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o, "grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld, "grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_rs, "grp_lcddrv_lcd_send_cmd_fu_36_rs");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_rs_ap_vld, "grp_lcddrv_lcd_send_cmd_fu_36_rs_ap_vld");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_data, "grp_lcddrv_lcd_send_cmd_fu_36_data");
    sc_trace(mVcdFile, grp_lcddrv_lcd_send_cmd_fu_36_data_ap_vld, "grp_lcddrv_lcd_send_cmd_fu_36_data_ap_vld");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_ap_start, "grp_lcddrv_wait_tmr_fu_57_ap_start");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_ap_done, "grp_lcddrv_wait_tmr_fu_57_ap_done");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_ap_idle, "grp_lcddrv_wait_tmr_fu_57_ap_idle");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_ap_ready, "grp_lcddrv_wait_tmr_fu_57_ap_ready");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_tmr, "grp_lcddrv_wait_tmr_fu_57_tmr");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o, "grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o");
    sc_trace(mVcdFile, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld, "grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld");
    sc_trace(mVcdFile, ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start, "ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st3_fsm_2, "ap_sig_cseq_ST_st3_fsm_2");
    sc_trace(mVcdFile, ap_sig_105, "ap_sig_105");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st7_fsm_6, "ap_sig_cseq_ST_st7_fsm_6");
    sc_trace(mVcdFile, ap_sig_112, "ap_sig_112");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st11_fsm_10, "ap_sig_cseq_ST_st11_fsm_10");
    sc_trace(mVcdFile, ap_sig_120, "ap_sig_120");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st15_fsm_14, "ap_sig_cseq_ST_st15_fsm_14");
    sc_trace(mVcdFile, ap_sig_128, "ap_sig_128");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st17_fsm_16, "ap_sig_cseq_ST_st17_fsm_16");
    sc_trace(mVcdFile, ap_sig_136, "ap_sig_136");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st19_fsm_18, "ap_sig_cseq_ST_st19_fsm_18");
    sc_trace(mVcdFile, ap_sig_144, "ap_sig_144");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st23_fsm_22, "ap_sig_cseq_ST_st23_fsm_22");
    sc_trace(mVcdFile, ap_sig_152, "ap_sig_152");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st25_fsm_24, "ap_sig_cseq_ST_st25_fsm_24");
    sc_trace(mVcdFile, ap_sig_160, "ap_sig_160");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st29_fsm_28, "ap_sig_cseq_ST_st29_fsm_28");
    sc_trace(mVcdFile, ap_sig_168, "ap_sig_168");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st31_fsm_30, "ap_sig_cseq_ST_st31_fsm_30");
    sc_trace(mVcdFile, ap_sig_176, "ap_sig_176");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st35_fsm_34, "ap_sig_cseq_ST_st35_fsm_34");
    sc_trace(mVcdFile, ap_sig_184, "ap_sig_184");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st37_fsm_36, "ap_sig_cseq_ST_st37_fsm_36");
    sc_trace(mVcdFile, ap_sig_192, "ap_sig_192");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st4_fsm_3, "ap_sig_cseq_ST_st4_fsm_3");
    sc_trace(mVcdFile, ap_sig_201, "ap_sig_201");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st8_fsm_7, "ap_sig_cseq_ST_st8_fsm_7");
    sc_trace(mVcdFile, ap_sig_208, "ap_sig_208");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st12_fsm_11, "ap_sig_cseq_ST_st12_fsm_11");
    sc_trace(mVcdFile, ap_sig_216, "ap_sig_216");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st16_fsm_15, "ap_sig_cseq_ST_st16_fsm_15");
    sc_trace(mVcdFile, ap_sig_224, "ap_sig_224");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st18_fsm_17, "ap_sig_cseq_ST_st18_fsm_17");
    sc_trace(mVcdFile, ap_sig_232, "ap_sig_232");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st20_fsm_19, "ap_sig_cseq_ST_st20_fsm_19");
    sc_trace(mVcdFile, ap_sig_240, "ap_sig_240");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st24_fsm_23, "ap_sig_cseq_ST_st24_fsm_23");
    sc_trace(mVcdFile, ap_sig_248, "ap_sig_248");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st26_fsm_25, "ap_sig_cseq_ST_st26_fsm_25");
    sc_trace(mVcdFile, ap_sig_256, "ap_sig_256");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st30_fsm_29, "ap_sig_cseq_ST_st30_fsm_29");
    sc_trace(mVcdFile, ap_sig_264, "ap_sig_264");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st32_fsm_31, "ap_sig_cseq_ST_st32_fsm_31");
    sc_trace(mVcdFile, ap_sig_272, "ap_sig_272");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st36_fsm_35, "ap_sig_cseq_ST_st36_fsm_35");
    sc_trace(mVcdFile, ap_sig_280, "ap_sig_280");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st38_fsm_37, "ap_sig_cseq_ST_st38_fsm_37");
    sc_trace(mVcdFile, ap_sig_288, "ap_sig_288");
    sc_trace(mVcdFile, ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start, "ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st5_fsm_4, "ap_sig_cseq_ST_st5_fsm_4");
    sc_trace(mVcdFile, ap_sig_407, "ap_sig_407");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st9_fsm_8, "ap_sig_cseq_ST_st9_fsm_8");
    sc_trace(mVcdFile, ap_sig_415, "ap_sig_415");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st13_fsm_12, "ap_sig_cseq_ST_st13_fsm_12");
    sc_trace(mVcdFile, ap_sig_423, "ap_sig_423");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st21_fsm_20, "ap_sig_cseq_ST_st21_fsm_20");
    sc_trace(mVcdFile, ap_sig_431, "ap_sig_431");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st27_fsm_26, "ap_sig_cseq_ST_st27_fsm_26");
    sc_trace(mVcdFile, ap_sig_439, "ap_sig_439");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st33_fsm_32, "ap_sig_cseq_ST_st33_fsm_32");
    sc_trace(mVcdFile, ap_sig_447, "ap_sig_447");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st39_fsm_38, "ap_sig_cseq_ST_st39_fsm_38");
    sc_trace(mVcdFile, ap_sig_455, "ap_sig_455");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st2_fsm_1, "ap_sig_cseq_ST_st2_fsm_1");
    sc_trace(mVcdFile, ap_sig_464, "ap_sig_464");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st6_fsm_5, "ap_sig_cseq_ST_st6_fsm_5");
    sc_trace(mVcdFile, ap_sig_472, "ap_sig_472");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st10_fsm_9, "ap_sig_cseq_ST_st10_fsm_9");
    sc_trace(mVcdFile, ap_sig_480, "ap_sig_480");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st14_fsm_13, "ap_sig_cseq_ST_st14_fsm_13");
    sc_trace(mVcdFile, ap_sig_487, "ap_sig_487");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st22_fsm_21, "ap_sig_cseq_ST_st22_fsm_21");
    sc_trace(mVcdFile, ap_sig_496, "ap_sig_496");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st28_fsm_27, "ap_sig_cseq_ST_st28_fsm_27");
    sc_trace(mVcdFile, ap_sig_503, "ap_sig_503");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st34_fsm_33, "ap_sig_cseq_ST_st34_fsm_33");
    sc_trace(mVcdFile, ap_sig_512, "ap_sig_512");
    sc_trace(mVcdFile, ap_sig_cseq_ST_st40_fsm_39, "ap_sig_cseq_ST_st40_fsm_39");
    sc_trace(mVcdFile, ap_sig_519, "ap_sig_519");
    sc_trace(mVcdFile, ap_NS_fsm, "ap_NS_fsm");
#endif

    }
}

lcddrv_init_lcd::~lcddrv_init_lcd() {
    if (mVcdFile) 
        sc_close_vcd_trace_file(mVcdFile);

    delete grp_lcddrv_lcd_send_cmd_fu_36;
    delete grp_lcddrv_wait_tmr_fu_57;
}

void lcddrv_init_lcd::thread_ap_var_for_const0() {
    ap_var_for_const0 = ap_const_lv1_0;
}

void lcddrv_init_lcd::thread_ap_clk_no_reset_() {
    if ( ap_rst.read() == ap_const_logic_1) {
        ap_CS_fsm = ap_ST_st1_fsm_0;
    } else {
        ap_CS_fsm = ap_NS_fsm.read();
    }
    if ( ap_rst.read() == ap_const_logic_1) {
        ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start = ap_const_logic_0;
    } else {
        if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st3_fsm_2.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st7_fsm_6.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st11_fsm_10.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st15_fsm_14.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st17_fsm_16.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st19_fsm_18.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st23_fsm_22.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st25_fsm_24.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st29_fsm_28.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st31_fsm_30.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st35_fsm_34.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st37_fsm_36.read()))) {
            ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start = ap_const_logic_1;
        } else if (esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_ap_ready.read())) {
            ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start = ap_const_logic_0;
        }
    }
    if ( ap_rst.read() == ap_const_logic_1) {
        ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start = ap_const_logic_0;
    } else {
        if (((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st1_fsm_0.read()) && 
              !esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_0)) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st5_fsm_4.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st9_fsm_8.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st13_fsm_12.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st21_fsm_20.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st27_fsm_26.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st33_fsm_32.read()) || 
             esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st39_fsm_38.read()))) {
            ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start = ap_const_logic_1;
        } else if (esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_ap_ready.read())) {
            ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start = ap_const_logic_0;
        }
    }
}

void lcddrv_init_lcd::thread_ap_done() {
    if (((esl_seteq<1,1,1>(ap_const_logic_0, ap_start.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st1_fsm_0.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st40_fsm_39.read()) && 
          !esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())))) {
        ap_done = ap_const_logic_1;
    } else {
        ap_done = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_idle() {
    if ((esl_seteq<1,1,1>(ap_const_logic_0, ap_start.read()) && 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st1_fsm_0.read()))) {
        ap_idle = ap_const_logic_1;
    } else {
        ap_idle = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_ready() {
    if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st40_fsm_39.read()) && 
         !esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read()))) {
        ap_ready = ap_const_logic_1;
    } else {
        ap_ready = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_105() {
    ap_sig_105 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(2, 2));
}

void lcddrv_init_lcd::thread_ap_sig_112() {
    ap_sig_112 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(6, 6));
}

void lcddrv_init_lcd::thread_ap_sig_120() {
    ap_sig_120 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(10, 10));
}

void lcddrv_init_lcd::thread_ap_sig_128() {
    ap_sig_128 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(14, 14));
}

void lcddrv_init_lcd::thread_ap_sig_136() {
    ap_sig_136 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(16, 16));
}

void lcddrv_init_lcd::thread_ap_sig_144() {
    ap_sig_144 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(18, 18));
}

void lcddrv_init_lcd::thread_ap_sig_152() {
    ap_sig_152 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(22, 22));
}

void lcddrv_init_lcd::thread_ap_sig_160() {
    ap_sig_160 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(24, 24));
}

void lcddrv_init_lcd::thread_ap_sig_168() {
    ap_sig_168 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(28, 28));
}

void lcddrv_init_lcd::thread_ap_sig_176() {
    ap_sig_176 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(30, 30));
}

void lcddrv_init_lcd::thread_ap_sig_184() {
    ap_sig_184 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(34, 34));
}

void lcddrv_init_lcd::thread_ap_sig_192() {
    ap_sig_192 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(36, 36));
}

void lcddrv_init_lcd::thread_ap_sig_201() {
    ap_sig_201 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(3, 3));
}

void lcddrv_init_lcd::thread_ap_sig_208() {
    ap_sig_208 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(7, 7));
}

void lcddrv_init_lcd::thread_ap_sig_216() {
    ap_sig_216 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(11, 11));
}

void lcddrv_init_lcd::thread_ap_sig_224() {
    ap_sig_224 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(15, 15));
}

void lcddrv_init_lcd::thread_ap_sig_232() {
    ap_sig_232 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(17, 17));
}

void lcddrv_init_lcd::thread_ap_sig_240() {
    ap_sig_240 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(19, 19));
}

void lcddrv_init_lcd::thread_ap_sig_248() {
    ap_sig_248 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(23, 23));
}

void lcddrv_init_lcd::thread_ap_sig_256() {
    ap_sig_256 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(25, 25));
}

void lcddrv_init_lcd::thread_ap_sig_264() {
    ap_sig_264 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(29, 29));
}

void lcddrv_init_lcd::thread_ap_sig_272() {
    ap_sig_272 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(31, 31));
}

void lcddrv_init_lcd::thread_ap_sig_280() {
    ap_sig_280 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(35, 35));
}

void lcddrv_init_lcd::thread_ap_sig_288() {
    ap_sig_288 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(37, 37));
}

void lcddrv_init_lcd::thread_ap_sig_407() {
    ap_sig_407 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(4, 4));
}

void lcddrv_init_lcd::thread_ap_sig_415() {
    ap_sig_415 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(8, 8));
}

void lcddrv_init_lcd::thread_ap_sig_423() {
    ap_sig_423 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(12, 12));
}

void lcddrv_init_lcd::thread_ap_sig_431() {
    ap_sig_431 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(20, 20));
}

void lcddrv_init_lcd::thread_ap_sig_439() {
    ap_sig_439 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(26, 26));
}

void lcddrv_init_lcd::thread_ap_sig_447() {
    ap_sig_447 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(32, 32));
}

void lcddrv_init_lcd::thread_ap_sig_455() {
    ap_sig_455 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(38, 38));
}

void lcddrv_init_lcd::thread_ap_sig_464() {
    ap_sig_464 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(1, 1));
}

void lcddrv_init_lcd::thread_ap_sig_472() {
    ap_sig_472 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(5, 5));
}

void lcddrv_init_lcd::thread_ap_sig_480() {
    ap_sig_480 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(9, 9));
}

void lcddrv_init_lcd::thread_ap_sig_487() {
    ap_sig_487 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(13, 13));
}

void lcddrv_init_lcd::thread_ap_sig_496() {
    ap_sig_496 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(21, 21));
}

void lcddrv_init_lcd::thread_ap_sig_503() {
    ap_sig_503 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(27, 27));
}

void lcddrv_init_lcd::thread_ap_sig_512() {
    ap_sig_512 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(33, 33));
}

void lcddrv_init_lcd::thread_ap_sig_519() {
    ap_sig_519 = esl_seteq<1,1,1>(ap_const_lv1_1, ap_CS_fsm.read().range(39, 39));
}

void lcddrv_init_lcd::thread_ap_sig_57() {
    ap_sig_57 = esl_seteq<1,1,1>(ap_CS_fsm.read().range(0, 0), ap_const_lv1_1);
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st10_fsm_9() {
    if (ap_sig_480.read()) {
        ap_sig_cseq_ST_st10_fsm_9 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st10_fsm_9 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st11_fsm_10() {
    if (ap_sig_120.read()) {
        ap_sig_cseq_ST_st11_fsm_10 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st11_fsm_10 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st12_fsm_11() {
    if (ap_sig_216.read()) {
        ap_sig_cseq_ST_st12_fsm_11 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st12_fsm_11 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st13_fsm_12() {
    if (ap_sig_423.read()) {
        ap_sig_cseq_ST_st13_fsm_12 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st13_fsm_12 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st14_fsm_13() {
    if (ap_sig_487.read()) {
        ap_sig_cseq_ST_st14_fsm_13 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st14_fsm_13 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st15_fsm_14() {
    if (ap_sig_128.read()) {
        ap_sig_cseq_ST_st15_fsm_14 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st15_fsm_14 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st16_fsm_15() {
    if (ap_sig_224.read()) {
        ap_sig_cseq_ST_st16_fsm_15 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st16_fsm_15 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st17_fsm_16() {
    if (ap_sig_136.read()) {
        ap_sig_cseq_ST_st17_fsm_16 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st17_fsm_16 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st18_fsm_17() {
    if (ap_sig_232.read()) {
        ap_sig_cseq_ST_st18_fsm_17 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st18_fsm_17 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st19_fsm_18() {
    if (ap_sig_144.read()) {
        ap_sig_cseq_ST_st19_fsm_18 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st19_fsm_18 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st1_fsm_0() {
    if (ap_sig_57.read()) {
        ap_sig_cseq_ST_st1_fsm_0 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st1_fsm_0 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st20_fsm_19() {
    if (ap_sig_240.read()) {
        ap_sig_cseq_ST_st20_fsm_19 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st20_fsm_19 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st21_fsm_20() {
    if (ap_sig_431.read()) {
        ap_sig_cseq_ST_st21_fsm_20 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st21_fsm_20 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st22_fsm_21() {
    if (ap_sig_496.read()) {
        ap_sig_cseq_ST_st22_fsm_21 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st22_fsm_21 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st23_fsm_22() {
    if (ap_sig_152.read()) {
        ap_sig_cseq_ST_st23_fsm_22 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st23_fsm_22 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st24_fsm_23() {
    if (ap_sig_248.read()) {
        ap_sig_cseq_ST_st24_fsm_23 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st24_fsm_23 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st25_fsm_24() {
    if (ap_sig_160.read()) {
        ap_sig_cseq_ST_st25_fsm_24 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st25_fsm_24 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st26_fsm_25() {
    if (ap_sig_256.read()) {
        ap_sig_cseq_ST_st26_fsm_25 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st26_fsm_25 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st27_fsm_26() {
    if (ap_sig_439.read()) {
        ap_sig_cseq_ST_st27_fsm_26 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st27_fsm_26 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st28_fsm_27() {
    if (ap_sig_503.read()) {
        ap_sig_cseq_ST_st28_fsm_27 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st28_fsm_27 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st29_fsm_28() {
    if (ap_sig_168.read()) {
        ap_sig_cseq_ST_st29_fsm_28 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st29_fsm_28 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st2_fsm_1() {
    if (ap_sig_464.read()) {
        ap_sig_cseq_ST_st2_fsm_1 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st2_fsm_1 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st30_fsm_29() {
    if (ap_sig_264.read()) {
        ap_sig_cseq_ST_st30_fsm_29 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st30_fsm_29 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st31_fsm_30() {
    if (ap_sig_176.read()) {
        ap_sig_cseq_ST_st31_fsm_30 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st31_fsm_30 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st32_fsm_31() {
    if (ap_sig_272.read()) {
        ap_sig_cseq_ST_st32_fsm_31 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st32_fsm_31 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st33_fsm_32() {
    if (ap_sig_447.read()) {
        ap_sig_cseq_ST_st33_fsm_32 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st33_fsm_32 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st34_fsm_33() {
    if (ap_sig_512.read()) {
        ap_sig_cseq_ST_st34_fsm_33 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st34_fsm_33 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st35_fsm_34() {
    if (ap_sig_184.read()) {
        ap_sig_cseq_ST_st35_fsm_34 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st35_fsm_34 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st36_fsm_35() {
    if (ap_sig_280.read()) {
        ap_sig_cseq_ST_st36_fsm_35 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st36_fsm_35 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st37_fsm_36() {
    if (ap_sig_192.read()) {
        ap_sig_cseq_ST_st37_fsm_36 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st37_fsm_36 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st38_fsm_37() {
    if (ap_sig_288.read()) {
        ap_sig_cseq_ST_st38_fsm_37 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st38_fsm_37 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st39_fsm_38() {
    if (ap_sig_455.read()) {
        ap_sig_cseq_ST_st39_fsm_38 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st39_fsm_38 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st3_fsm_2() {
    if (ap_sig_105.read()) {
        ap_sig_cseq_ST_st3_fsm_2 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st3_fsm_2 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st40_fsm_39() {
    if (ap_sig_519.read()) {
        ap_sig_cseq_ST_st40_fsm_39 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st40_fsm_39 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st4_fsm_3() {
    if (ap_sig_201.read()) {
        ap_sig_cseq_ST_st4_fsm_3 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st4_fsm_3 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st5_fsm_4() {
    if (ap_sig_407.read()) {
        ap_sig_cseq_ST_st5_fsm_4 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st5_fsm_4 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st6_fsm_5() {
    if (ap_sig_472.read()) {
        ap_sig_cseq_ST_st6_fsm_5 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st6_fsm_5 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st7_fsm_6() {
    if (ap_sig_112.read()) {
        ap_sig_cseq_ST_st7_fsm_6 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st7_fsm_6 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st8_fsm_7() {
    if (ap_sig_208.read()) {
        ap_sig_cseq_ST_st8_fsm_7 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st8_fsm_7 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_ap_sig_cseq_ST_st9_fsm_8() {
    if (ap_sig_415.read()) {
        ap_sig_cseq_ST_st9_fsm_8 = ap_const_logic_1;
    } else {
        ap_sig_cseq_ST_st9_fsm_8 = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_data() {
    data = grp_lcddrv_lcd_send_cmd_fu_36_data.read();
}

void lcddrv_init_lcd::thread_data_ap_vld() {
    data_ap_vld = grp_lcddrv_lcd_send_cmd_fu_36_data_ap_vld.read();
}

void lcddrv_init_lcd::thread_dummy_tmr_out_o() {
    if (((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st2_fsm_1.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st6_fsm_5.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st10_fsm_9.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st14_fsm_13.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st22_fsm_21.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st28_fsm_27.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st34_fsm_33.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())) || 
         (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st40_fsm_39.read()) && 
          esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read())))) {
        dummy_tmr_out_o = grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o.read();
    } else if (((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st4_fsm_3.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st8_fsm_7.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st12_fsm_11.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st16_fsm_15.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st18_fsm_17.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st20_fsm_19.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st24_fsm_23.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st26_fsm_25.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st30_fsm_29.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st32_fsm_31.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st36_fsm_35.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())) || 
                (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st38_fsm_37.read()) && 
                 esl_seteq<1,1,1>(ap_const_logic_1, grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read())))) {
        dummy_tmr_out_o = grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o.read();
    } else {
        dummy_tmr_out_o = dummy_tmr_out_i.read();
    }
}

void lcddrv_init_lcd::thread_dummy_tmr_out_o_ap_vld() {
    if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st2_fsm_1.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st6_fsm_5.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st10_fsm_9.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st14_fsm_13.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st22_fsm_21.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st28_fsm_27.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st34_fsm_33.read()) || 
         esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st40_fsm_39.read()))) {
        dummy_tmr_out_o_ap_vld = grp_lcddrv_wait_tmr_fu_57_dummy_tmr_out_o_ap_vld.read();
    } else if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st4_fsm_3.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st8_fsm_7.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st12_fsm_11.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st16_fsm_15.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st18_fsm_17.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st20_fsm_19.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st24_fsm_23.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st26_fsm_25.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st30_fsm_29.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st32_fsm_31.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st36_fsm_35.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st38_fsm_37.read()))) {
        dummy_tmr_out_o_ap_vld = grp_lcddrv_lcd_send_cmd_fu_36_dummy_tmr_out_o_ap_vld.read();
    } else {
        dummy_tmr_out_o_ap_vld = ap_const_logic_0;
    }
}

void lcddrv_init_lcd::thread_en() {
    en = grp_lcddrv_lcd_send_cmd_fu_36_en.read();
}

void lcddrv_init_lcd::thread_en_ap_vld() {
    en_ap_vld = grp_lcddrv_lcd_send_cmd_fu_36_en_ap_vld.read();
}

void lcddrv_init_lcd::thread_grp_lcddrv_lcd_send_cmd_fu_36_ap_start() {
    grp_lcddrv_lcd_send_cmd_fu_36_ap_start = ap_reg_grp_lcddrv_lcd_send_cmd_fu_36_ap_start.read();
}

void lcddrv_init_lcd::thread_grp_lcddrv_lcd_send_cmd_fu_36_wd() {
    if (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st32_fsm_31.read())) {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = ap_const_lv4_1;
    } else if (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st26_fsm_25.read())) {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = ap_const_lv4_C;
    } else if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st24_fsm_23.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st30_fsm_29.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st36_fsm_35.read()))) {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = ap_const_lv4_0;
    } else if (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st20_fsm_19.read())) {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = ap_const_lv4_8;
    } else if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st16_fsm_15.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st18_fsm_17.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st38_fsm_37.read()))) {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = ap_const_lv4_2;
    } else if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st4_fsm_3.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st8_fsm_7.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st12_fsm_11.read()))) {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = ap_const_lv4_3;
    } else {
        grp_lcddrv_lcd_send_cmd_fu_36_wd = "XXXX";
    }
}

void lcddrv_init_lcd::thread_grp_lcddrv_wait_tmr_fu_57_ap_start() {
    grp_lcddrv_wait_tmr_fu_57_ap_start = ap_reg_grp_lcddrv_wait_tmr_fu_57_ap_start.read();
}

void lcddrv_init_lcd::thread_grp_lcddrv_wait_tmr_fu_57_tmr() {
    if (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st34_fsm_33.read())) {
        grp_lcddrv_wait_tmr_fu_57_tmr = ap_const_lv25_30D40;
    } else if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st22_fsm_21.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st28_fsm_27.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st40_fsm_39.read()))) {
        grp_lcddrv_wait_tmr_fu_57_tmr = ap_const_lv25_2710;
    } else if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st10_fsm_9.read()) || 
                esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st14_fsm_13.read()))) {
        grp_lcddrv_wait_tmr_fu_57_tmr = ap_const_lv25_C350;
    } else if (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st6_fsm_5.read())) {
        grp_lcddrv_wait_tmr_fu_57_tmr = ap_const_lv25_7A120;
    } else if (esl_seteq<1,1,1>(ap_const_logic_1, ap_sig_cseq_ST_st2_fsm_1.read())) {
        grp_lcddrv_wait_tmr_fu_57_tmr = ap_const_lv25_1E8480;
    } else {
        grp_lcddrv_wait_tmr_fu_57_tmr =  (sc_lv<25>) ("XXXXXXXXXXXXXXXXXXXXXXXXX");
    }
}

void lcddrv_init_lcd::thread_rs() {
    rs = grp_lcddrv_lcd_send_cmd_fu_36_rs.read();
}

void lcddrv_init_lcd::thread_rs_ap_vld() {
    rs_ap_vld = grp_lcddrv_lcd_send_cmd_fu_36_rs_ap_vld.read();
}

void lcddrv_init_lcd::thread_ap_NS_fsm() {
    switch (ap_CS_fsm.read().to_uint64()) {
        case 1 : 
            if (!esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_0)) {
                ap_NS_fsm = ap_ST_st2_fsm_1;
            } else {
                ap_NS_fsm = ap_ST_st1_fsm_0;
            }
            break;
        case 2 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st3_fsm_2;
            } else {
                ap_NS_fsm = ap_ST_st2_fsm_1;
            }
            break;
        case 4 : 
            ap_NS_fsm = ap_ST_st4_fsm_3;
            break;
        case 8 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st5_fsm_4;
            } else {
                ap_NS_fsm = ap_ST_st4_fsm_3;
            }
            break;
        case 16 : 
            ap_NS_fsm = ap_ST_st6_fsm_5;
            break;
        case 32 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st7_fsm_6;
            } else {
                ap_NS_fsm = ap_ST_st6_fsm_5;
            }
            break;
        case 64 : 
            ap_NS_fsm = ap_ST_st8_fsm_7;
            break;
        case 128 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st9_fsm_8;
            } else {
                ap_NS_fsm = ap_ST_st8_fsm_7;
            }
            break;
        case 256 : 
            ap_NS_fsm = ap_ST_st10_fsm_9;
            break;
        case 512 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st11_fsm_10;
            } else {
                ap_NS_fsm = ap_ST_st10_fsm_9;
            }
            break;
        case 1024 : 
            ap_NS_fsm = ap_ST_st12_fsm_11;
            break;
        case 2048 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st13_fsm_12;
            } else {
                ap_NS_fsm = ap_ST_st12_fsm_11;
            }
            break;
        case 4096 : 
            ap_NS_fsm = ap_ST_st14_fsm_13;
            break;
        case 8192 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st15_fsm_14;
            } else {
                ap_NS_fsm = ap_ST_st14_fsm_13;
            }
            break;
        case 16384 : 
            ap_NS_fsm = ap_ST_st16_fsm_15;
            break;
        case 32768 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st17_fsm_16;
            } else {
                ap_NS_fsm = ap_ST_st16_fsm_15;
            }
            break;
        case 65536 : 
            ap_NS_fsm = ap_ST_st18_fsm_17;
            break;
        case 131072 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st19_fsm_18;
            } else {
                ap_NS_fsm = ap_ST_st18_fsm_17;
            }
            break;
        case 262144 : 
            ap_NS_fsm = ap_ST_st20_fsm_19;
            break;
        case 524288 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st21_fsm_20;
            } else {
                ap_NS_fsm = ap_ST_st20_fsm_19;
            }
            break;
        case 1048576 : 
            ap_NS_fsm = ap_ST_st22_fsm_21;
            break;
        case 2097152 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st23_fsm_22;
            } else {
                ap_NS_fsm = ap_ST_st22_fsm_21;
            }
            break;
        case 4194304 : 
            ap_NS_fsm = ap_ST_st24_fsm_23;
            break;
        case 8388608 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st25_fsm_24;
            } else {
                ap_NS_fsm = ap_ST_st24_fsm_23;
            }
            break;
        case 16777216 : 
            ap_NS_fsm = ap_ST_st26_fsm_25;
            break;
        case 33554432 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st27_fsm_26;
            } else {
                ap_NS_fsm = ap_ST_st26_fsm_25;
            }
            break;
        case 67108864 : 
            ap_NS_fsm = ap_ST_st28_fsm_27;
            break;
        case 134217728 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st29_fsm_28;
            } else {
                ap_NS_fsm = ap_ST_st28_fsm_27;
            }
            break;
        case 268435456 : 
            ap_NS_fsm = ap_ST_st30_fsm_29;
            break;
        case 536870912 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st31_fsm_30;
            } else {
                ap_NS_fsm = ap_ST_st30_fsm_29;
            }
            break;
        case 1073741824 : 
            ap_NS_fsm = ap_ST_st32_fsm_31;
            break;
        case 2147483648 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st33_fsm_32;
            } else {
                ap_NS_fsm = ap_ST_st32_fsm_31;
            }
            break;
        case 4294967296 : 
            ap_NS_fsm = ap_ST_st34_fsm_33;
            break;
        case 8589934592 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st35_fsm_34;
            } else {
                ap_NS_fsm = ap_ST_st34_fsm_33;
            }
            break;
        case 17179869184 : 
            ap_NS_fsm = ap_ST_st36_fsm_35;
            break;
        case 34359738368 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st37_fsm_36;
            } else {
                ap_NS_fsm = ap_ST_st36_fsm_35;
            }
            break;
        case 68719476736 : 
            ap_NS_fsm = ap_ST_st38_fsm_37;
            break;
        case 137438953472 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_lcd_send_cmd_fu_36_ap_done.read())) {
                ap_NS_fsm = ap_ST_st39_fsm_38;
            } else {
                ap_NS_fsm = ap_ST_st38_fsm_37;
            }
            break;
        case 274877906944 : 
            ap_NS_fsm = ap_ST_st40_fsm_39;
            break;
        case 549755813888 : 
            if (!esl_seteq<1,1,1>(ap_const_logic_0, grp_lcddrv_wait_tmr_fu_57_ap_done.read())) {
                ap_NS_fsm = ap_ST_st1_fsm_0;
            } else {
                ap_NS_fsm = ap_ST_st40_fsm_39;
            }
            break;
        default : 
            ap_NS_fsm =  (sc_lv<40>) ("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
            break;
    }
}

}

