trying to add a FSM
when following 4 lines are un-commented
def xess_jpeg_top(clk_fast, addr_r, addr_x, addr_r1, addr_r2, muxsel, dataToRam_r, dataToRam_x, sig_in, noupdate_s, res_s, jp_lf, jp_sa ,jp_rh, jp_flgs, reset_col, rdy, addr_not_reached, offset, dataFromRam_s, state, even_odd_r, even_odd_x):
instance_6 = RamCtrl(addr_r, addr_x, state, even_odd_r, even_odd_x)
return instance_2, instance_3, instance_4, instance_5, instance_6, instance_7
toVHDL(xess_jpeg_top, clk_fast, addr_r, addr_x, addr_r1, addr_r2, muxsel, dataToRam_r, dataToRam_x, sig_in, noupdate_s, res_s, jp_lf, jp_sa ,jp_rh, jp_flgs, reset_col, rdy, addr_not_reached, offset, dataFromRam_s, state, even_odd_r, even_odd_x)
the xess_jpeg_top.vhd now creates a package.

when the following 3 lines are un-commented and the line instance_6 = RamCtrl(addr_r, addr_x, state, even_odd_r, even_odd_x) is commented out
def xess_jpeg_top(clk_fast, addr_r, addr_x, addr_r1, addr_r2, muxsel, dataToRam_r, dataToRam_x, sig_in, noupdate_s, res_s, jp_lf, jp_sa ,jp_rh, jp_flgs, reset_col, rdy, addr_not_reached, offset, dataFromRam_s):
return instance_2, instance_3, instance_4, instance_5, instance_7
toVHDL(xess_jpeg_top, clk_fast, addr_r, addr_x, addr_r1, addr_r2, muxsel, dataToRam_r, dataToRam_x, sig_in, noupdate_s, res_s, jp_lf, jp_sa ,jp_rh, jp_flgs, reset_col, rdy, addr_not_reached, offset, dataFromRam_s)
The XESS_JPEG_TOP_INSTANCE_6_FSM is not generated and the file xess_jpeg_top.vhd is not a package.