-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[When] Add support for unflattened tuples
- Loading branch information
Showing
41 changed files
with
8,541 additions
and
216 deletions.
There are no files selected for viewing
6,299 changes: 6,299 additions & 0 deletions
6,299
examples/riscv_mini/tests/gold/test_riscv_mini_unflattened_tuples.v
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
import os | ||
|
||
import magma as m | ||
from magma.config import config as magma_config | ||
from magma.testing.utils import check_gold | ||
|
||
from riscv_mini.tile import Tile | ||
|
||
|
||
def test_riscv_mini_unflattened_tuples(): | ||
magma_config.compile_dir = 'callee_file_dir' | ||
tile = Tile(32) | ||
m.compile( | ||
"build/test_riscv_mini_unflattened_tuples", | ||
tile, | ||
output="mlir-verilog", | ||
disallow_local_variables=True, | ||
disallow_packed_struct_assignments=True | ||
) | ||
assert check_gold(__file__, "test_riscv_mini_unflattened_tuples.v") |
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
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
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
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
Oops, something went wrong.