data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v
1: b'%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:17: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode,data/full_repos/permissive/502764644/defines.v\n             data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode,data/full_repos/permissive/502764644/defines.v.v\n             data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode,data/full_repos/permissive/502764644/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:60: Define or directive not defined: \'`I_PICTURE\'\nassign Table_Offset = (Macroblock_Type_I == `I_PICTURE) ? `TABLE_B2_START : \n                                            ^~~~~~~~~~\n%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:60: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nassign Table_Offset = (Macroblock_Type_I == `I_PICTURE) ? `TABLE_B2_START : \n                                                      ^\n%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:60: Define or directive not defined: \'`TABLE_B2_START\'\nassign Table_Offset = (Macroblock_Type_I == `I_PICTURE) ? `TABLE_B2_START : \n                                                          ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:61: Define or directive not defined: \'`P_PICTURE\'\n   (Macroblock_Type_I == `P_PICTURE) ? `TABLE_B3_START : `TABLE_B4_START;\n                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:61: Define or directive not defined: \'`TABLE_B3_START\'\n   (Macroblock_Type_I == `P_PICTURE) ? `TABLE_B3_START : `TABLE_B4_START;\n                                       ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/502764644/mpeg_audio_video/Sequence_Decode/Slice_Decode/Macroblock_Decode_Modes.v:61: Define or directive not defined: \'`TABLE_B4_START\'\n   (Macroblock_Type_I == `P_PICTURE) ? `TABLE_B3_START : `TABLE_B4_START;\n                                                         ^~~~~~~~~~~~~~~\n%Error: Exiting due to 7 error(s)\n'
module Macroblock_Decode_Modes(
   resetn,
   clock,
   
   Start_I,
   Macroblock_Type_I,
   Data_In_I,

   Shift_En_O,
   Valid_Code_O,
   Symbol_O,

   Coeff_Table_En_O,
   Coeff_Table_Addr_O,
   Coeff_Table_Data_I
);

input                resetn;
input                clock;

input                Start_I;
input    [1:0]       Macroblock_Type_I;
input                Data_In_I;

output               Shift_En_O;
output               Valid_Code_O;
output   [4:0]       Symbol_O;

output               Coeff_Table_En_O;
input    [15:0]      Coeff_Table_Data_I;
output   [9:0]       Coeff_Table_Addr_O;

wire     [9:0]       Table_Offset;
wire     [7:0]       Next_Table_Addr, Curr_Table_Data;
wire                 Valid_Code;
reg                  Valid_Code_reg;

assign Valid_Code = Curr_Table_Data[7];
assign Coeff_Table_En_O = ~Valid_Code_O | Start_I;
assign Curr_Table_Data = (Data_In_I) ? 
   Coeff_Table_Data_I[15:8] : Coeff_Table_Data_I[7:0];
assign Next_Table_Addr = (Start_I) ? 8'h00 : Curr_Table_Data;
assign Table_Offset = (Macroblock_Type_I == `I_PICTURE) ? `TABLE_B2_START : 
   (Macroblock_Type_I == `P_PICTURE) ? `TABLE_B3_START : `TABLE_B4_START;
assign Coeff_Table_Addr_O = Table_Offset + {2'b00,Next_Table_Addr};
assign Symbol_O = Curr_Table_Data[4:0];

always @(posedge clock or negedge resetn) begin
   if (~resetn) Valid_Code_reg <= 1'b1;
   else begin
      Valid_Code_reg <= (Valid_Code | Valid_Code_reg) & ~Start_I;
   end
end

assign Shift_En_O = ~Valid_Code_reg;
assign Valid_Code_O = (Valid_Code_reg | Valid_Code) & ~Start_I;

endmodule
module Macroblock_Decode_Modes(
   resetn,
   clock,
   
   Start_I,
   Macroblock_Type_I,
   Data_In_I,

   Shift_En_O,
   Valid_Code_O,
   Symbol_O,

   Coeff_Table_En_O,
   Coeff_Table_Addr_O,
   Coeff_Table_Data_I
);


input                resetn;
input                clock;

input                Start_I;
input    [1:0]       Macroblock_Type_I;
input                Data_In_I;

output               Shift_En_O;
output               Valid_Code_O;
output   [4:0]       Symbol_O;

output               Coeff_Table_En_O;
input    [15:0]      Coeff_Table_Data_I;
output   [9:0]       Coeff_Table_Addr_O;

wire     [9:0]       Table_Offset;
wire     [7:0]       Next_Table_Addr, Curr_Table_Data;
wire                 Valid_Code;
reg                  Valid_Code_reg;

assign Valid_Code = Curr_Table_Data[7];
assign Coeff_Table_En_O = ~Valid_Code_O | Start_I;
assign Curr_Table_Data = (Data_In_I) ? 
   Coeff_Table_Data_I[15:8] : Coeff_Table_Data_I[7:0];
assign Next_Table_Addr = (Start_I) ? 8'h00 : Curr_Table_Data;
assign Table_Offset = (Macroblock_Type_I == `I_PICTURE) ? `TABLE_B2_START : 
   (Macroblock_Type_I == `P_PICTURE) ? `TABLE_B3_START : `TABLE_B4_START;
assign Coeff_Table_Addr_O = Table_Offset + {2'b00,Next_Table_Addr};
assign Symbol_O = Curr_Table_Data[4:0];

always @(posedge clock or negedge resetn) begin
   if (~resetn) Valid_Code_reg <= 1'b1;
   else begin
      Valid_Code_reg <= (Valid_Code | Valid_Code_reg) & ~Start_I;
   end
end

assign Shift_En_O = ~Valid_Code_reg;
assign Valid_Code_O = (Valid_Code_reg | Valid_Code) & ~Start_I;

endmodule