package jazz.circuit.blues;
///////////////////////////////////////////////////////////////////////////////
//
// Read-Only Memory for Blues
//
// XXX: don't change the order of input and output fields (temporary)
//
///////////////////////////////////////////////////////////////////////////////
import jazz.circuit.*;
public extern device ROM {
// Width of address bus
public naddr: int;
// Width of data bus
public ndata: int;
// The name of a file describing the ROM data
public content: String;
@ Device.setParams(format("naddr=%d ndata=%d content=%s",
naddr, ndata, content));
// Inputs
public input addr: Net[naddr];
// Outputs
public output data: Net[ndata];
}