mirror of https://github.com/YosysHQ/yosys.git
ecp5: Fixing miscellaneous sim model issues
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
e9ef077266
commit
3a3558acce
|
@ -232,13 +232,13 @@ module TRELLIS_FF(input CLK, LSR, CE, DI, output reg Q);
|
||||||
always @(posedge muxclk, posedge muxlsr)
|
always @(posedge muxclk, posedge muxlsr)
|
||||||
if (muxlsr)
|
if (muxlsr)
|
||||||
Q <= srval;
|
Q <= srval;
|
||||||
else
|
else if (muxce)
|
||||||
Q <= DI;
|
Q <= DI;
|
||||||
end else begin
|
end else begin
|
||||||
always @(posedge muxclk)
|
always @(posedge muxclk)
|
||||||
if (muxlsr)
|
if (muxlsr)
|
||||||
Q <= srval;
|
Q <= srval;
|
||||||
else
|
else if (muxce)
|
||||||
Q <= DI;
|
Q <= DI;
|
||||||
end
|
end
|
||||||
endgenerate
|
endgenerate
|
||||||
|
|
Loading…
Reference in New Issue