mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-29 01:24:25 +02:00
Added $global_clock verilog syntax support for creating $ff cells
This commit is contained in:
@@ -1382,18 +1382,22 @@ endmodule
|
||||
|
||||
`endif
|
||||
// --------------------------------------------------------
|
||||
`ifdef SIMLIB_FF
|
||||
|
||||
module \$ff (D, Q);
|
||||
|
||||
parameter WIDTH = 0;
|
||||
|
||||
input [WIDTH-1:0] D;
|
||||
output [WIDTH-1:0] Q;
|
||||
output reg [WIDTH-1:0] Q;
|
||||
|
||||
assign D = Q;
|
||||
always @($global_clk) begin
|
||||
Q <= D;
|
||||
end
|
||||
|
||||
endmodule
|
||||
|
||||
`endif
|
||||
// --------------------------------------------------------
|
||||
|
||||
module \$dff (CLK, D, Q);
|
||||
|
||||
Reference in New Issue
Block a user