Skip to content

Commit

Permalink
asap7: dff.v was missing internal signals
Browse files Browse the repository at this point in the history
This caused .vcd files in mock-array not to have pin values for all pins

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
  • Loading branch information
oharboe committed Jan 13, 2025
1 parent 0ff3a4b commit 7916378
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions flow/platforms/asap7/verilog/stdcell/dff.v
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
// Quick and dirty reimplementation of DFFHQNx2_ASAP7_75t_R because
// Verialtor doesn't support and has no plans to support 1995 UDP
// tables.
// Quick and dirty reimplementation of DFFHQNx2_ASAP7_75t_R
// because verilator doesn't support and has no plans to
// support 1995 UDP tables.
//
// https://github.com/verilator/verilator/issues/5243

module DFFHQNx1_ASAP7_75t_R (QN, D, CLK);
output reg QN;
output QN;
input D, CLK;

reg IQNN;
wire IQN;
always @(posedge CLK) begin
QN <= ~D;
IQNN <= ~D;
end
assign IQN = IQNN;
assign QN = IQN;
endmodule

module DFFHQNx2_ASAP7_75t_R (QN, D, CLK);
output reg QN;
output QN;
input D, CLK;

reg IQNN;
wire IQN;
always @(posedge CLK) begin
QN <= ~D;
IQNN <= D;
end
assign IQN = IQNN;
assign QN = IQN;
endmodule

module DFFHQNx3_ASAP7_75t_R (QN, D, CLK);
output reg QN;
output QN;
input D, CLK;

reg IQNN;
wire IQN;
always @(posedge CLK) begin
QN <= ~D;
IQNN <= ~D;
end
assign IQN = IQNN;
assign QN = IQN;
endmodule

0 comments on commit 7916378

Please sign in to comment.