vram/VRAMCore: derive FShow for request and response types
Handy in unit tests to display the structs as they fly around.
This commit is contained in:
parent
65d13a0e50
commit
8247661a38
|
@ -28,11 +28,11 @@ typedef EBR#(ByteAddr, VRAMData, ByteAddr, VRAMData) ByteRAM;
|
|||
typedef struct {
|
||||
VRAMAddr addr;
|
||||
Maybe#(VRAMData) data;
|
||||
} VRAMRequest deriving (Bits, Eq);
|
||||
} VRAMRequest deriving (Bits, Eq, FShow);
|
||||
|
||||
typedef struct {
|
||||
VRAMData data;
|
||||
} VRAMResponse deriving (Bits, Eq);
|
||||
} VRAMResponse deriving (Bits, Eq, FShow);
|
||||
|
||||
module mkNibbleRAM_ECP5(ChipAddr chip_addr, EBR#(ByteAddr, Bit#(4), ByteAddr, Bit#(4)) ifc);
|
||||
EBRPortConfig cfg = defaultValue;
|
||||
|
|
Loading…
Reference in New Issue