mirror of https://github.com/YosysHQ/yosys.git
Fix ECP5 cells_sim for iverilog
This commit is contained in:
parent
60e3c38054
commit
ca2b3feed8
|
@ -223,11 +223,12 @@ module TRELLIS_FF(input CLK, LSR, CE, DI, M, output reg Q);
|
|||
|
||||
wire muxlsr = (LSRMUX == "INV") ? ~LSR : LSR;
|
||||
wire muxclk = (CLKMUX == "INV") ? ~CLK : CLK;
|
||||
wire srval;
|
||||
generate
|
||||
if (LSRMODE == "PRLD")
|
||||
wire srval = M;
|
||||
assign srval = M;
|
||||
else
|
||||
localparam srval = (REGSET == "SET") ? 1'b1 : 1'b0;
|
||||
assign srval = (REGSET == "SET") ? 1'b1 : 1'b0;
|
||||
endgenerate
|
||||
|
||||
initial Q = srval;
|
||||
|
|
Loading…
Reference in New Issue