mirror of
https://github.com/quorten/macsehw.git
synced 2024-09-29 01:57:39 +00:00
6678c4b2ab
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.
16 lines
485 B
Systemverilog
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
|