mirror of https://github.com/YosysHQ/yosys.git
synth_gatemate: Registers are uninitialized
This commit is contained in:
parent
acb993b27b
commit
6825de6343
|
@ -294,7 +294,7 @@ module CC_DFF #(
|
|||
assign en = (EN_INV) ? ~EN : EN;
|
||||
assign sr = (SR_INV) ? ~SR : SR;
|
||||
|
||||
initial Q = 1'b0;
|
||||
initial Q = 1'bX;
|
||||
|
||||
always @(posedge clk or posedge sr)
|
||||
begin
|
||||
|
@ -323,7 +323,7 @@ module CC_DLT #(
|
|||
assign en = (G_INV) ? ~G : G;
|
||||
assign sr = (SR_INV) ? ~SR : SR;
|
||||
|
||||
initial Q = 1'b0;
|
||||
initial Q = 1'bX;
|
||||
|
||||
always @(*)
|
||||
begin
|
||||
|
|
|
@ -305,7 +305,7 @@ struct SynthGateMatePass : public ScriptPass
|
|||
if (check_label("map_regs"))
|
||||
{
|
||||
run("opt_clean");
|
||||
run("dfflegalize -cell $_DFFE_????_ 0 -cell $_DLATCH_???_ 0");
|
||||
run("dfflegalize -cell $_DFFE_????_ x -cell $_DLATCH_???_ x");
|
||||
run("techmap -map +/gatemate/reg_map.v");
|
||||
run("opt_expr -mux_undef");
|
||||
run("simplemap");
|
||||
|
|
Loading…
Reference in New Issue