mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2156 from XarkLabs/master
Fix Verilator sim warnings: 1 BLKSEQ and 3 WIDTH
This commit is contained in:
commit
39ba90a8b8
|
@ -2508,7 +2508,7 @@ module SB_SPRAM256KA (
|
||||||
|
|
||||||
always @(negedge POWEROFF) begin
|
always @(negedge POWEROFF) begin
|
||||||
for (i = 0; i <= 16383; i = i+1)
|
for (i = 0; i <= 16383; i = i+1)
|
||||||
mem[i] = 'bx;
|
mem[i] = 16'bx;
|
||||||
end
|
end
|
||||||
|
|
||||||
always @(posedge CLOCK, posedge off) begin
|
always @(posedge CLOCK, posedge off) begin
|
||||||
|
@ -2516,17 +2516,17 @@ module SB_SPRAM256KA (
|
||||||
DATAOUT <= 0;
|
DATAOUT <= 0;
|
||||||
end else
|
end else
|
||||||
if (STANDBY) begin
|
if (STANDBY) begin
|
||||||
DATAOUT <= 'bx;
|
DATAOUT <= 16'bx;
|
||||||
end else
|
end else
|
||||||
if (CHIPSELECT) begin
|
if (CHIPSELECT) begin
|
||||||
if (!WREN) begin
|
if (!WREN) begin
|
||||||
DATAOUT <= mem[ADDRESS];
|
DATAOUT <= mem[ADDRESS];
|
||||||
end else begin
|
end else begin
|
||||||
if (MASKWREN[0]) mem[ADDRESS][ 3: 0] = DATAIN[ 3: 0];
|
if (MASKWREN[0]) mem[ADDRESS][ 3: 0] <= DATAIN[ 3: 0];
|
||||||
if (MASKWREN[1]) mem[ADDRESS][ 7: 4] = DATAIN[ 7: 4];
|
if (MASKWREN[1]) mem[ADDRESS][ 7: 4] <= DATAIN[ 7: 4];
|
||||||
if (MASKWREN[2]) mem[ADDRESS][11: 8] = DATAIN[11: 8];
|
if (MASKWREN[2]) mem[ADDRESS][11: 8] <= DATAIN[11: 8];
|
||||||
if (MASKWREN[3]) mem[ADDRESS][15:12] = DATAIN[15:12];
|
if (MASKWREN[3]) mem[ADDRESS][15:12] <= DATAIN[15:12];
|
||||||
DATAOUT <= 'bx;
|
DATAOUT <= 16'bx;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue