yosys/tests/arch/ecp5/bug1836.ys

24 lines
362 B
Plaintext
Raw Normal View History

2022-05-09 17:31:42 -05:00
read_verilog <<EOT
2022-07-24 17:21:00 -05:00
module top(
input clk,
output reg [15:0] sig1, sig2
);
reg [7:0] ptr1, ptr2;
reg [15:0] mem [0:255];
2022-05-09 17:31:42 -05:00
initial begin
2022-07-24 17:21:00 -05:00
$readmemh("bug1836.mem", mem);
2022-05-09 17:31:42 -05:00
end
always @(posedge clk) begin
2022-07-24 17:21:00 -05:00
sig1 <= mem[ptr1];
ptr1 <= ptr1 + 3;
sig2 <= mem[ptr2];
ptr2 <= ptr2 + 7;
2022-05-09 17:31:42 -05:00
end
endmodule
EOT
2022-07-24 17:21:00 -05:00
synth_ecp5 -top top
2022-05-09 17:31:42 -05:00
select -assert-count 1 t:DP16KD