Skip to content

Commit

Permalink
dromajo_ram: Fix IEEE compliance (openhwgroup#584)
Browse files Browse the repository at this point in the history
According to IEEE 1800-2017 (9.2.2.4 Sequential logic always_ff procedure):

"Variables on the left-hand side of assignments within an always_ff procedure, including variables from the contents of a called function, shall not be written to by any other process."
Thus there is a proposal of changing always_ff with always because Mem_DP is driven by two processes: initial and always_ff what is forbidden.
  • Loading branch information
pawelkudlakaldec authored Jan 18, 2021
1 parent d4605e3 commit 540632a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dromajo_ram.sv
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module dromajo_ram
end
end

always_ff @(posedge Clk_CI) begin
always @(posedge Clk_CI) begin
if(CSel_SI) begin
if(WrEn_SI) begin
if(BEn_SI[0]) Mem_DP[Addr_DI][7:0] <= WrData_DI[7:0];
Expand Down

0 comments on commit 540632a

Please sign in to comment.