data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v
None: at end of input
1: b"%Error: data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v:44: Cannot find file containing module: 'messbauer_generator'\nmessbauer_generator #(.CHANNEL_NUMBER(512), .CHANNEL_TYPE(1)) v1_generator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .start(v1_start), .channel(v1_channel));\n^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/101793969/messbauer_test_environment/src,data/full_repos/permissive/101793969/messbauer_generator\n             data/full_repos/permissive/101793969/messbauer_test_environment/src,data/full_repos/permissive/101793969/messbauer_generator.v\n             data/full_repos/permissive/101793969/messbauer_test_environment/src,data/full_repos/permissive/101793969/messbauer_generator.sv\n             messbauer_generator\n             messbauer_generator.v\n             messbauer_generator.sv\n             obj_dir/messbauer_generator\n             obj_dir/messbauer_generator.v\n             obj_dir/messbauer_generator.sv\n%Error: data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v:46: Cannot find file containing module: 'messbauer_saw_tooth_generator'\nmessbauer_saw_tooth_generator #(.DIRECT_SLOPE_DURATION(512)) v1_velocity_reference_generator(.clk(global_clock), .areset_n(global_reset & internal_reset), .out_value(v1_velocity_reference));\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v:48: Cannot find file containing module: 'messbauer_diff_discriminator_signals'\nmessbauer_diff_discriminator_signals v1_diff_discriminator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .channel(v1_channel), .lower_threshold(v1_lower_threshold), .upper_threshold(v1_upper_threshold));\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v:52: Cannot find file containing module: 'messbauer_generator'\nmessbauer_generator #(.CHANNEL_NUMBER(512), .CHANNEL_TYPE(2)) v2_generator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .start(v2_start), .channel(v2_channel));\n^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v:54: Cannot find file containing module: 'messbauer_saw_tooth_generator'\nmessbauer_saw_tooth_generator #(.DIRECT_SLOPE_DURATION(512)) v2_velocity_reference_generator(.clk(global_clock), .areset_n(global_reset & internal_reset), .out_value(v2_velocity_reference));\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/101793969/messbauer_test_environment/src/messbauer_test_environment.v:56: Cannot find file containing module: 'messbauer_diff_discriminator_signals'\nmessbauer_diff_discriminator_signals v2_diff_discriminator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .channel(v2_channel), .lower_threshold(v2_lower_threshold), .upper_threshold(v2_upper_threshold));\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module messbauer_test_environment
(
    input wire global_clock,
    input wire global_reset,

    output wire v1_channel,
    output wire v1_start,
	 output wire [11:0] v1_velocity_reference,
    output wire v1_lower_threshold,
    output wire v1_upper_threshold,

    output wire v2_channel,
    output wire v2_start,
	 output wire [11:0] v2_velocity_reference,
    output wire v2_lower_threshold,
    output wire v2_upper_threshold
);

reg internal_reset;
reg [5:0] counter;



messbauer_generator #(.CHANNEL_NUMBER(512), .CHANNEL_TYPE(1)) v1_generator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .start(v1_start), .channel(v1_channel));

messbauer_saw_tooth_generator #(.DIRECT_SLOPE_DURATION(512)) v1_velocity_reference_generator(.clk(global_clock), .areset_n(global_reset & internal_reset), .out_value(v1_velocity_reference));

messbauer_diff_discriminator_signals v1_diff_discriminator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .channel(v1_channel), .lower_threshold(v1_lower_threshold), .upper_threshold(v1_upper_threshold));



messbauer_generator #(.CHANNEL_NUMBER(512), .CHANNEL_TYPE(2)) v2_generator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .start(v2_start), .channel(v2_channel));

messbauer_saw_tooth_generator #(.DIRECT_SLOPE_DURATION(512)) v2_velocity_reference_generator(.clk(global_clock), .areset_n(global_reset & internal_reset), .out_value(v2_velocity_reference));

messbauer_diff_discriminator_signals v2_diff_discriminator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .channel(v2_channel), .lower_threshold(v2_lower_threshold), .upper_threshold(v2_upper_threshold));


always @(posedge global_clock)
begin
     if(~global_reset)
     begin
         internal_reset <= 1;
          counter <= 0;
     end
     if(counter < 16)
         counter <= counter + 1'b1;
     if(counter >= 16 && counter < 32)
     begin
         counter <= counter + 1'b1;
          internal_reset <= 0;
     end
     if(counter == 32)
         internal_reset <= 1;
end

endmodule
module messbauer_test_environment
(
    input wire global_clock,
    input wire global_reset,

    output wire v1_channel,
    output wire v1_start,
	 output wire [11:0] v1_velocity_reference,
    output wire v1_lower_threshold,
    output wire v1_upper_threshold,

    output wire v2_channel,
    output wire v2_start,
	 output wire [11:0] v2_velocity_reference,
    output wire v2_lower_threshold,
    output wire v2_upper_threshold
);


reg internal_reset;
reg [5:0] counter;



messbauer_generator #(.CHANNEL_NUMBER(512), .CHANNEL_TYPE(1)) v1_generator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .start(v1_start), .channel(v1_channel));

messbauer_saw_tooth_generator #(.DIRECT_SLOPE_DURATION(512)) v1_velocity_reference_generator(.clk(global_clock), .areset_n(global_reset & internal_reset), .out_value(v1_velocity_reference));

messbauer_diff_discriminator_signals v1_diff_discriminator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .channel(v1_channel), .lower_threshold(v1_lower_threshold), .upper_threshold(v1_upper_threshold));



messbauer_generator #(.CHANNEL_NUMBER(512), .CHANNEL_TYPE(2)) v2_generator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .start(v2_start), .channel(v2_channel));

messbauer_saw_tooth_generator #(.DIRECT_SLOPE_DURATION(512)) v2_velocity_reference_generator(.clk(global_clock), .areset_n(global_reset & internal_reset), .out_value(v2_velocity_reference));

messbauer_diff_discriminator_signals v2_diff_discriminator(.aclk(global_clock), .areset_n(global_reset & internal_reset), .channel(v2_channel), .lower_threshold(v2_lower_threshold), .upper_threshold(v2_upper_threshold));


always @(posedge global_clock)
begin
     if(~global_reset)
     begin
         internal_reset <= 1;
          counter <= 0;
     end
     if(counter < 16)
         counter <= counter + 1'b1;
     if(counter >= 16 && counter < 32)
     begin
         counter <= counter + 1'b1;
          internal_reset <= 0;
     end
     if(counter == 32)
         internal_reset <= 1;
end

endmodule