forked from chipsalliance/Surelog
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bits and size support in gen stmt, late binding of signals
- Loading branch information
1 parent
925c3ca
commit cfce8f8
Showing
15 changed files
with
780 additions
and
29 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
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 @@ | ||
-parse -d uhdm -d coveruhdm -elabuhdm -d ast dut.sv -nobuiltin |
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,31 @@ | ||
module GOOD(); | ||
|
||
endmodule; // GOOD | ||
|
||
module ibex_top ( | ||
|
||
output logic instr_req_o, | ||
input logic instr_gnt_i, | ||
output byte b | ||
); | ||
|
||
|
||
|
||
generate | ||
if (1) begin | ||
|
||
localparam int NumBufferBits = $bits({ | ||
|
||
instr_req_o, // 1 bit | ||
instr_gnt_i, // 1 bit | ||
b // 8 bits | ||
}); | ||
|
||
if (NumBufferBits == 10) begin | ||
GOOD good(); | ||
end | ||
|
||
end | ||
endgenerate | ||
|
||
endmodule |
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 |
---|---|---|
|
@@ -298,7 +298,7 @@ AST_DEBUG_END | |
[INF:UH0706] Creating UHDM Model... | ||
=== UHDM Object Stats Begin (Non-Elaborated Model) === | ||
begin 4 | ||
constant 42 | ||
constant 41 | ||
cont_assign 2 | ||
design 1 | ||
gen_if 4 | ||
|
@@ -320,7 +320,7 @@ sys_func_call 10 | |
[INF:UH0707] Elaborating UHDM... | ||
=== UHDM Object Stats Begin (Elaborated Model) === | ||
begin 4 | ||
constant 42 | ||
constant 41 | ||
cont_assign 3 | ||
design 1 | ||
gen_if 4 | ||
|
@@ -866,10 +866,7 @@ design: (work@top) | |
\_constant: | ||
|vpiParent: | ||
\_cont_assign: , line:12:10, endln:12:24 | ||
|vpiDecompile:2 | ||
|vpiSize:64 | ||
|UINT:2 | ||
|vpiConstType:9 | ||
|vpiLhs: | ||
\_ref_obj: ([email protected]), line:12:10, endln:12:13 | ||
|vpiParent: | ||
|
@@ -1064,7 +1061,6 @@ design: (work@top) | |
\_logic_typespec: | ||
|vpiLeftRange: | ||
\_constant: | ||
|UINT:2 | ||
|vpiRightRange: | ||
\_constant: | ||
|UINT:1 | ||
|
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
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