Skip to content

Commit 63393ef

Browse files
authored
hw: Remove ternary statements in PHY (#9)
1 parent 2e51cde commit 63393ef

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## Unreleased
8+
9+
- Removed ternary statement in `serial_link_physical` for better EDA tool compatibility.
10+
711
## 1.1.1 - 2024-02-07
812

913
### Changed

src/serial_link_physical.sv

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ module serial_link_physical_rx #(
142142
////////////////
143143
// DDR IN //
144144
////////////////
145-
always_ff @(negedge ddr_rcv_clk_i, negedge rst_ni) ddr_q <= !rst_ni ? '0 : ddr_i;
145+
always_ff @(negedge ddr_rcv_clk_i, negedge rst_ni) begin
146+
if (~rst_ni) begin
147+
ddr_q <= '0;
148+
end else begin
149+
ddr_q <= ddr_i;
150+
end
151+
end
146152
assign data_in = {ddr_i, ddr_q};
147153

148154
endmodule

0 commit comments

Comments
 (0)