3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-08 12:11:24 +00:00

Added tests/techmap/mem_simple_4x1

This commit is contained in:
Clifford Wolf 2014-02-21 12:06:40 +01:00
parent 79f8944811
commit 81b3f52519
8 changed files with 215 additions and 0 deletions

View file

@ -0,0 +1,15 @@
module uut (clk, rst, out, counter);
input clk, rst;
output reg [7:0] out;
output reg [4:0] counter;
reg [7:0] memory [0:19];
always @(posedge clk) begin
counter <= rst || counter == 19 ? 0 : counter+1;
memory[counter] <= counter;
out <= memory[counter];
end
endmodule