-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asap7: dff.v was missing internal signals
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
Showing
1 changed file
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |