First off, let me point out that I'm a newbie trying to teach myself verilog. :)
I get warnings (shown below) whenever I try to assign values to a register in a "always @ (posedge clk)" block, and change the values in a "always @ (negedge clk)" block.
My thinking is that I want to update an internal register on the negedge, and then present it to the output on the posedge. I'm pretty sure that my thinking is wrong because if I "`ifdef" out the negedge block the warning goes away. [The logic also stops working, but that's not the point.]
As a final note, this logic simulates just fine.
Thanks for looking at this for me. I appreciate the help.
-MO
module top(clk, reset, enable, cnt);
input clk,reset,enable; output cnt;
wire clk,reset,enable; reg [3:0] cnt, curval, ov1; reg [1:0] acnt;
always @ (posedge clk) begin if (reset) begin curval