F
fpgabuilder
Guest
Hi Folks,
Both Precision Synthesis and Altera Quartus 2.0 cannot infer flops with
async reset and enable in the following code. I have checked that the
nclk and nrst_n are properly connected to the module.
What am I missing?
TIA,
Sanjay
-------
reg [23:0] irq_event_reg [0:1];
always@(posedge nclk or negedge nrst_n)
begin : irq_event_reg_sync
if(!nrst_n)
begin
irq_event_reg[0] <= 24'd0;
irq_event_reg[1] <= 24'd0;
end
else
begin
irq_event_reg[0] <= nwd;
irq_event_reg[1] <= irq_event_reg[0][23:0];
end
end
assign irq_event[23:0] = irq_event_reg[1][23:0];
Both Precision Synthesis and Altera Quartus 2.0 cannot infer flops with
async reset and enable in the following code. I have checked that the
nclk and nrst_n are properly connected to the module.
What am I missing?
TIA,
Sanjay
-------
reg [23:0] irq_event_reg [0:1];
always@(posedge nclk or negedge nrst_n)
begin : irq_event_reg_sync
if(!nrst_n)
begin
irq_event_reg[0] <= 24'd0;
irq_event_reg[1] <= 24'd0;
end
else
begin
irq_event_reg[0] <= nwd;
irq_event_reg[1] <= irq_event_reg[0][23:0];
end
end
assign irq_event[23:0] = irq_event_reg[1][23:0];