big-moving.ru/assets/vendor_plugins/ace-builds-master/demo/kitchen-sink/docs/verilog.v

12 lines
274 B
Coq
Raw Normal View History

2022-06-24 15:29:23 +05:00
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];