Commit 56cc6994 authored by Andrea Boccardi's avatar Andrea Boccardi

fixed a problem in the leds monostable

parent c3d17ad2
......@@ -3,14 +3,14 @@ module Monostable (
input Clk_ik,
output reg SynchOutput_oq);
parameter g_CounterBits = 20;
parameter g_CounterBits = 26;
reg AsynchIn_ax = 1'b0;
reg [2:0] AsynchInAX_db3 = 2'b0;
reg [3:0] AsynchInAX_db4 = 2'b0;
always @(posedge AsynchIn_ia) AsynchIn_ax <= #1 ~AsynchIn_ax;
always @(posedge Clk_ik) AsynchInAX_db3 <= #1 {AsynchInAX_db3[1:0], AsynchIn_ax};
wire SynchIn_p = ^AsynchInAX_db3[2:0];
always @(posedge Clk_ik) AsynchInAX_db4 <= #1 {AsynchInAX_db4[2:0], AsynchIn_ax};
wire SynchIn_p = ^AsynchInAX_db4[3:2];
reg [g_CounterBits-1:0] Counter_c = 'b0;
......@@ -22,4 +22,4 @@ end
always @(posedge Clk_ik) SynchOutput_oq <= #1 ~&Counter_c;
endmodule
\ No newline at end of file
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment