data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v
1: b'%Error: data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v:2: Cannot find include file: head.v\n`include"head.v" \n        ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/166661632/p8/srccode,data/full_repos/permissive/166661632/head.v\n             data/full_repos/permissive/166661632/p8/srccode,data/full_repos/permissive/166661632/head.v.v\n             data/full_repos/permissive/166661632/p8/srccode,data/full_repos/permissive/166661632/head.v.sv\n             head.v\n             head.v.v\n             head.v.sv\n             obj_dir/head.v\n             obj_dir/head.v.v\n             obj_dir/head.v.sv\n%Error: data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v:14: Define or directive not defined: \'`wm_wd\'\n  if(wordmode==`wm_wd)\n               ^~~~~~\n%Error: data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v:14: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  if(wordmode==`wm_wd)\n                     ^\n%Error: data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v:16: Define or directive not defined: \'`wm_hu\'\n  else if(wordmode==`wm_hu||wordmode==`wm_hs)\n                    ^~~~~~\n%Error: data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v:16: Define or directive not defined: \'`wm_hs\'\n  else if(wordmode==`wm_hu||wordmode==`wm_hs)\n                                      ^~~~~~\n%Error: data/full_repos/permissive/166661632/p8/srccode/Dmdecode.v:24: syntax error, unexpected else\n  else\n  ^~~~\n%Error: Cannot continue\n'
module Dmdecode(wordmode,addr,be);
input [31:0] addr;
input [2:0]wordmode;
output reg [3:0]be;


always @(*)
	begin
		if(wordmode==`wm_wd)
			be<=4'b1111;
		else if(wordmode==`wm_hu||wordmode==`wm_hs)
			begin
				be[0]<=(addr[1])==0?1:0;
				be[1]<=(addr[1])==0?1:0;
				be[2]<=(addr[1])==1?1:0;
				be[3]<=(addr[1])==1?1:0;
			end

		else
			begin
				be[0]<=(addr[1:0])==0?1:0;
				be[1]<=(addr[1:0])==1?1:0;
				be[2]<=(addr[1:0])==2?1:0;
				be[3]<=(addr[1:0])==3?1:0;
			end
		
	end

endmodule
module Dmdecode(wordmode,addr,be);

input [31:0] addr;
input [2:0]wordmode;
output reg [3:0]be;


always @(*)
	begin
		if(wordmode==`wm_wd)
			be<=4'b1111;
		else if(wordmode==`wm_hu||wordmode==`wm_hs)
			begin
				be[0]<=(addr[1])==0?1:0;
				be[1]<=(addr[1])==0?1:0;
				be[2]<=(addr[1])==1?1:0;
				be[3]<=(addr[1])==1?1:0;
			end

		else
			begin
				be[0]<=(addr[1:0])==0?1:0;
				be[1]<=(addr[1:0])==1?1:0;
				be[2]<=(addr[1:0])==2?1:0;
				be[3]<=(addr[1:0])==3?1:0;
			end
		
	end

endmodule