Skip to content

Commit

Permalink
More small improvements to preprocessor hygiene
Browse files Browse the repository at this point in the history
  • Loading branch information
ldoolitt committed Jan 29, 2024
1 parent 42ecede commit cc3fa4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmoc/cryomodule.v
Original file line number Diff line number Diff line change
Expand Up @@ -441,4 +441,7 @@ always @(posedge lb_clk) begin
end
assign lb_out = lb_out_r;

`undef SAT
`undef UNIFORM

endmodule
1 change: 1 addition & 0 deletions dsp/ccfilt.v
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ always @(posedge clk) begin
end
reg valid3=0;
always @(posedge clk) valid3 <= valid2;
`undef UNIFORM

`ifdef SIMULATE
reg [3:0] ch_id=0;
Expand Down
1 change: 1 addition & 0 deletions dsp/digaree/sf_main.v
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ assign valid_o = valid_r;
assign sat_happened = valid_r & sat_happened_r;

`undef SAT
`undef UNSAT

endmodule

Expand Down
1 change: 1 addition & 0 deletions rtsim/rtsim.v
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ always @(posedge clk) begin
eig_drive <= eig_drive0;
edrive_clip <= ~`UNIFORM(sum_eig_drive[19:17]);
end
`undef UNIFORM
`undef SAT

// Reserve space for several possible clipping status signals
Expand Down

0 comments on commit cc3fa4b

Please sign in to comment.