-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lukas Humbel <[email protected]>
- Loading branch information
Showing
3 changed files
with
261 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module DRAM { | ||
input memory (0 bits 40) GDDR0 | ||
output memory (0 bits 40) RAMOUT | ||
GDDR0 accepts [(0x000000000 to 0x0fedfffff)] | ||
|
||
memory (0 bits 40) DRAMMAP | ||
DRAMMAP maps [ | ||
(0x000000000 to 0x0fedfffff) to RAMOUT at (0x000000000 to 0x0fedfffff) | ||
] | ||
} | ||
|
||
module SOCKET { | ||
instance RAM[1 to 2; 10 to 11] of DRAM | ||
|
||
memory (0 bits 40) LOCAL | ||
LOCAL accepts [(0x000000000 to 0x0fedfffff)] | ||
|
||
memory (0 bits 40) LOCAL_SRC | ||
|
||
forall x in (1 to 2, 10 to 11) { | ||
forall y in (10 to 11) { | ||
RAM[x; y] instantiates DRAM | ||
RAM[x; y] binds [ | ||
RAMOUT to LOCAL | ||
] | ||
|
||
LOCAL_SRC maps [ | ||
(0x1000 to 0x2000) to RAM[x; y].GDDR0 at (0x1000 to 0x2000) | ||
] | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters