mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-04 23:14:00 +00:00
Merge pull request #5393 from sifferman/ifdef_tran
Added ifndef SIMLIB_NOCONNECT
This commit is contained in:
commit
058766da22
1 changed files with 11 additions and 0 deletions
|
@ -31,6 +31,14 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// If using Verilator, define SIMLIB_VERILATOR_COMPAT
|
||||||
|
`ifdef SIMLIB_VERILATOR_COMPAT
|
||||||
|
/* verilator lint_save */
|
||||||
|
/* verilator lint_off DEFOVERRIDE */
|
||||||
|
`define SIMLIB_NOCONNECT
|
||||||
|
/* verilator lint_restore */
|
||||||
|
`endif
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
//* ver 2
|
//* ver 2
|
||||||
//* title Bit-wise inverter
|
//* title Bit-wise inverter
|
||||||
|
@ -3219,6 +3227,8 @@ endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
//* group wire
|
//* group wire
|
||||||
|
`ifndef SIMLIB_NOCONNECT
|
||||||
|
|
||||||
module \$connect (A, B);
|
module \$connect (A, B);
|
||||||
|
|
||||||
parameter WIDTH = 0;
|
parameter WIDTH = 0;
|
||||||
|
@ -3230,6 +3240,7 @@ tran connect[WIDTH-1:0] (A, B);
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
`endif
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
//* group wire
|
//* group wire
|
||||||
module \$input_port (Y);
|
module \$input_port (Y);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue