G
glen herrmannsfeldt
Guest
I am trying to figure out how to write a synthesizable state
machine with async. reset. I have a fine synchronous reset,
which starte something like:
always @(posedge clk) begin
if(reset) state <= s0;
else case (state)
I have tried
always @(posedge clk or posedge reset) begin
if(reset) state <= s0;
else case (state)
but it doesn't work, at least it doesn't synthesize an asynchronous
reset, and it doesn't seem to simulate right, either.
I have also tried separate always @(posedge clock) and
always @(posedge reset) blocks, which usually get complaints
about driving the same net two different places.
Is there a nice way to do this?
-- glen
machine with async. reset. I have a fine synchronous reset,
which starte something like:
always @(posedge clk) begin
if(reset) state <= s0;
else case (state)
I have tried
always @(posedge clk or posedge reset) begin
if(reset) state <= s0;
else case (state)
but it doesn't work, at least it doesn't synthesize an asynchronous
reset, and it doesn't seem to simulate right, either.
I have also tried separate always @(posedge clock) and
always @(posedge reset) blocks, which usually get complaints
about driving the same net two different places.
Is there a nice way to do this?
-- glen