data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v
'utf-8' codec can't decode byte 0xc1 in position 38: invalid start byte
1: b'%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:2: Cannot find include file: const_defination.v\n`include "const_defination.v" \n         ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new,data/full_repos/permissive/114882688/const_defination.v\n             data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new,data/full_repos/permissive/114882688/const_defination.v.v\n             data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new,data/full_repos/permissive/114882688/const_defination.v.sv\n             const_defination.v\n             const_defination.v.v\n             const_defination.v.sv\n             obj_dir/const_defination.v\n             obj_dir/const_defination.v.v\n             obj_dir/const_defination.v.sv\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:25: Define or directive not defined: \'`icodeBus\'\n input wire[`icodeBus] D_icode,E_icode,M_icode,\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:25: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n input wire[`icodeBus] D_icode,E_icode,M_icode,\n                     ^\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:26: Define or directive not defined: \'`regBus\'\n input wire[`regBus] d_srcA,d_srcB,\n            ^~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:27: Define or directive not defined: \'`regBus\'\n input wire[`regBus] E_dstM,\n            ^~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:29: syntax error, unexpected input, expecting IDENTIFIER or do or final\n input wire[`statBus] m_stat,\n ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:29: Define or directive not defined: \'`statBus\'\n input wire[`statBus] m_stat,\n            ^~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:31: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n output reg D_bubble,E_bubble,M_bubble\n ^~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:32: syntax error, unexpected \')\', expecting \',\' or \';\'\n    );\n    ^\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:37: Define or directive not defined: \'`Ret\'\n  if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n              ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:37: Define or directive not defined: \'`Ret\'\n  if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                             ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:37: Define or directive not defined: \'`Ret\'\n  if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                                            ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:37: Define or directive not defined: \'`Mrmovq\'\n  if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                                                             ^~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:37: Define or directive not defined: \'`Popq\'\n  if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                                                                               ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:37: Define or directive not defined: \'`dmem_error\'\n  if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                                                                                                                                  ^~~~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:50: Define or directive not defined: \'`Mrmovq\'\n  if(((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                ^~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:50: Define or directive not defined: \'`Popq\'\n  if(((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                                  ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:50: Define or directive not defined: \'`dmem_error\'\n  if(((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)\n                                                                                     ^~~~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:63: Define or directive not defined: \'`Mrmovq\'\n  if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))\n                           ^~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:63: Define or directive not defined: \'`Popq\'\n  if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))\n                                             ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:63: Define or directive not defined: \'`Ret\'\n  if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))\n                                                                                                  ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:63: Define or directive not defined: \'`Ret\'\n  if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))\n                                                                                                                 ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:63: Define or directive not defined: \'`Ret\'\n  if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))\n                                                                                                                                ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:76: Define or directive not defined: \'`Mrmovq\'\n  if(e_cnd==1||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB)))\n                          ^~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:76: Define or directive not defined: \'`Popq\'\n  if(e_cnd==1||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB)))\n                                            ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:89: Define or directive not defined: \'`dmem_error\'\n  if(m_stat==`dmem_error||m_stat==`stop||m_stat==`inst_invalid)\n             ^~~~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:89: Define or directive not defined: \'`stop\'\n  if(m_stat==`dmem_error||m_stat==`stop||m_stat==`inst_invalid)\n                                  ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/control.v:89: Define or directive not defined: \'`inst_invalid\'\n  if(m_stat==`dmem_error||m_stat==`stop||m_stat==`inst_invalid)\n                                                 ^~~~~~~~~~~~~\n%Error: Exiting due to 28 error(s)\n'
module control(
	input wire[`icodeBus] D_icode,E_icode,M_icode,
	input wire[`regBus] d_srcA,d_srcB,
	input wire[`regBus] E_dstM,
	input wire e_cnd,
	input wire[`statBus] m_stat,
	output reg F_stall,D_stall,
	output reg D_bubble,E_bubble,M_bubble
    );
	

	always@(*)
	begin
		if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)
		begin
			F_stall=1;
		end
		else
		begin
			F_stall=0;
		end
	end
	

	always@(*)
	begin
		if(((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)
		begin
			D_stall=1;
		end
		else
		begin
			D_stall=0;
		end
	end
	

	always@(*)
	begin
		if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))
		begin
			D_bubble=1;
		end
		else
		begin
			D_bubble=0;
		end
	end
	

	always@(*)
	begin
		if(e_cnd==1||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB)))
		begin
			E_bubble=1;
		end
		else
		begin
			E_bubble=0;
		end
	end


	always@(*)
	begin
		if(m_stat==`dmem_error||m_stat==`stop||m_stat==`inst_invalid)
		begin
			M_bubble=1;
		end
		else
		begin
			M_bubble=0;
		end
	end

endmodule
module control(
	input wire[`icodeBus] D_icode,E_icode,M_icode,
	input wire[`regBus] d_srcA,d_srcB,
	input wire[`regBus] E_dstM,
	input wire e_cnd,
	input wire[`statBus] m_stat,
	output reg F_stall,D_stall,
	output reg D_bubble,E_bubble,M_bubble
    );

	

	always@(*)
	begin
		if(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)
		begin
			F_stall=1;
		end
		else
		begin
			F_stall=0;
		end
	end
	

	always@(*)
	begin
		if(((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))||m_stat==`dmem_error)
		begin
			D_stall=1;
		end
		else
		begin
			D_stall=0;
		end
	end
	

	always@(*)
	begin
		if(e_cnd==1||!((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB))&&(D_icode==`Ret||E_icode==`Ret||M_icode==`Ret))
		begin
			D_bubble=1;
		end
		else
		begin
			D_bubble=0;
		end
	end
	

	always@(*)
	begin
		if(e_cnd==1||((E_icode==`Mrmovq||E_icode==`Popq)&&(E_dstM==d_srcA||E_dstM==d_srcB)))
		begin
			E_bubble=1;
		end
		else
		begin
			E_bubble=0;
		end
	end


	always@(*)
	begin
		if(m_stat==`dmem_error||m_stat==`stop||m_stat==`inst_invalid)
		begin
			M_bubble=1;
		end
		else
		begin
			M_bubble=0;
		end
	end

endmodule