Skip to content

Commit

Permalink
Remove code duplication in verilog detect
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Oct 19, 2018
1 parent 741a5a2 commit f0f0b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_counter():
if __name__ == '__main__':
m.compile("tests/build/mantle_counter", mantle_counter)
print("===== BEGIN : SILICA RESULTS =====")
evaluate_circuit("counter_si", "SilicaCounter")
evaluate_circuit("counter_si", "counter")
print("===== END : SILICA RESULTS =====")
print("===== BEGIN : MANTLE RESULTS =====")
evaluate_circuit("mantle_counter", "Counter3")
Expand Down
2 changes: 1 addition & 1 deletion verilog/detect111.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module detect111(
wire [1:0] cnt_next;

always @(posedge CLK) begin
cnt <= I ? (cnt==3 ? cnt : cnt+1) : 0;
cnt <= cnt_next;
end

// mealey version
Expand Down

0 comments on commit f0f0b0d

Please sign in to comment.