You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
274 B
Coq
12 lines
274 B
Coq
10 years ago
|
always @(negedge reset or posedge clk) begin
|
||
|
if (reset == 0) begin
|
||
|
d_out <= 16'h0000;
|
||
|
d_out_mem[resetcount] <= d_out;
|
||
|
laststoredvalue <= d_out;
|
||
|
end else begin
|
||
|
d_out <= d_out + 1'b1;
|
||
|
end
|
||
|
end
|
||
|
|
||
|
always @(bufreadaddr)
|
||
|
bufreadval = d_out_mem[bufreadaddr];
|