Commit e165b747 by Miodrag Milanovic

Fixed some regressed tests

parent e430882c
......@@ -6,7 +6,13 @@ input ce;
output reg [7:0] q;
reg [7:0] ram[1023:0];
integer j;
// memory not created if there is no initial content
initial
for(j = 0; j < 256; j = j+1)
ram[j] = 8'h00;
always @(posedge clk)
begin
if (ce)
......
......@@ -2,4 +2,6 @@ read_verilog ../top.v
tribuf -logic
synth -top bidirtest
iopadmap -bits -inpad IBUF O:PAD -outpad OBUF I:PAD -tinoutpad IOBUF ENA:O:I:PAD bidirtest
select -assert-count 0 t:IOBUF
select -assert-count 1 t:IOBUF
select -assert-count 2 t:IBUF
select -assert-count 1 t:OBUF
......@@ -5,6 +5,12 @@ module top(
);
reg [7:0] rom_data[0:255];
integer j;
// memory not created if there is no initial content
initial
for(j = 0; j < 256; j = j+1)
rom_data[j] = 8'h00;
always @(posedge clk)
dbr <= rom_data[addr];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment