When a placed design is inspected in Radiant Physical View, the SLICE register shows a setting with the value LSR_OVER_CE or ASYNC. What do these values mean, and how are they selected?
The register type is inferred by synthesis based on the RTL reset style, and PAR configures the SLICE SRMODE to match:
| RTL reset style | Example RTL | SLICE SRMODE after PAR |
|---|---|---|
| Synchronous | always @(posedge clk) with if (rst) | LSR_OVER_CE |
| Asynchronous | always @(posedge clk or posedge rst) with if (rst) | ASYNC |
To obtain a particular mode, the register is written with the corresponding reset style in the RTL.
The following behavior was confirmed by a self-checking testbench, simulated on both the RTL and the post-route netlist with SDF timing back-annotation:
| Scenario | LSR_OVER_CE (synchronous) | ASYNC (asynchronous) |
|---|---|---|
| Reset asserted between clock edges, CE high | Clears at the next clock edge | Clears immediately |
| Reset asserted while CE is low | Still clears at the next clock edge | Clears immediately |
| Short reset pulse that does not span a clock edge | Pulse is ignored | Clears |
.udb): the setting is stored here (not readable plain text)..vo): the setting is shown as the parameter ASYNC on the SLICEREG primitive:SRMODE = LSR_OVER_CE corresponds to defparam <inst>.ASYNC = "NO";SRMODE = ASYNC corresponds to defparam <inst>.ASYNC = "YES";The following design places both modes in one top level. Both counters share one clock, reset and clock enable.
// Synchronous reset: SLICE SRMODE = LSR_OVER_CE
module sync_rst_cnt (input clk, input rst, input ce, output reg [7:0] q);
always @(posedge clk) begin
if (rst) q <= 8'd0;
else if (ce) q <= q + 8'd1;
end
endmodule
// Asynchronous reset: SLICE SRMODE = ASYNC
module async_rst_cnt (input clk, input rst, input ce, output reg [7:0] q);
always @(posedge clk or posedge rst) begin
if (rst) q <= 8'd0;
else if (ce) q <= q + 8'd1;
end
endmodule
module top (input clk, input rst, input ce,
output [7:0] q_sync, output [7:0] q_async);
sync_rst_cnt u_sync (.clk(clk), .rst(rst), .ce(ce), .q(q_sync));
async_rst_cnt u_async (.clk(clk), .rst(rst), .ce(ce), .q(q_async));
endmoduleAfter synthesis, map and PAR, the SLICEs used by u_sync (LSR_OVER_CE) and u_async (ASYNC) can be inspected in Physical View, or the post-route netlist .vo can be searched for ASYNC = .
The setting is SRMODE, the SLICE register reset mode. It determines how the SLICE local set/reset (LSR) is applied to the register:
LSR_OVER_CE: the LSR is synchronous. It is applied only at a clock edge and takes priority over the clock enable (CE), so the register resets at the next edge even when CE is low.ASYNC: the LSR is asynchronous. It acts immediately, independent of the clock and CE.The mode is not set by a user constraint. It is inferred based on the RTL reset style, and PAR configures the SLICE to match.