Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Sep 21, 2017
1 parent 2509859 commit dbdf063
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions messbauer_test_environment/src/messbauer_test_environment.v
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ module messbauer_test_environment
(
input global_clock, // 50 MHz GCLK, T8
input global_reset, // L3 as Button
// Left Side of AX309 Board
output v1_channel, // H15
output v1_start, // F16
// Left Side of AX309 Board
output v1_channel, // F16
output v1_start, // E16
output v1_lower_threshold, // C10
output v1_upper_threshold, // D16
// Right Side of AX309 Board
Expand All @@ -47,20 +47,20 @@ messbauer_diff_discriminator_signals v2_diff_discriminator(.aclk(global_clock),

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;
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

0 comments on commit dbdf063

Please sign in to comment.