Skip to content

Commit

Permalink
Merge pull request #223 from SiLab-Bonn/firmware_workflow
Browse files Browse the repository at this point in the history
Fix firmware compilation error
  • Loading branch information
YannickDieter authored May 23, 2024
2 parents d910da9 + 76dec3c commit 1459a87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion basil/firmware/modules/utils/CG_MOD_neg.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ input ck_in,enable;
output ck_out;
reg enl;

always_latch
// verilator lint_off LATCH
always @(ck_in or enable)
if (ck_in)
enl = enable;
// verilator lint_on LATCH

assign ck_out = ck_in | ~enl;

endmodule
6 changes: 5 additions & 1 deletion basil/firmware/modules/utils/CG_MOD_pos.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ wire ck_inb;
reg enl;

assign ck_inb = ~ck_in;
always_latch

// verilator lint_off LATCH
always @(ck_inb or enable)
if (ck_inb)
enl = enable;
// verilator lint_on LATCH

assign ck_out = ck_in & enl;

endmodule

0 comments on commit 1459a87

Please sign in to comment.