macsehw/hardware/fpga/bbu/common.vh
Andrew Makousky 6678c4b2ab Commit BBU work-in-progress.
For comparative simulation, I'm also assembling the logic of the earlier
Macintosh 128K, and possibly also Macintosh Plus, in Verilog, and
planning on doing MLB board-level simulations too.
2020-11-25 01:05:48 -06:00

16 lines
485 B
Systemverilog

`ifndef COMMON_VH
`define COMMON_VH
// Special type indicator for simclk: it will not be present in
// physical builds.
`define virtwire wire
// Simulate an output wire by using multi-cycle registered logic.
`define simwire reg
// Tristate output (output With high-impedance (Z))
`define output_wz inout
// To preserve pin numbering at the I/O connections, power wires can
// be implemented as inputs: constant value 1 for Vcc, 0 for GND.
`define power input
`endif // not COMMON_VH