Commentary

This commit is contained in:
Wilson Snyder 2024-09-08 11:11:20 -04:00
parent c83ee391bb
commit 55ae48ac13
4 changed files with 15 additions and 8 deletions

View File

@ -6962,7 +6962,7 @@ class WidthVisitor final : public VNVisitor {
// Check using assignment-like context rules
// if (debug()) nodep->dumpTree("- checkass: ");
UASSERT_OBJ(stage == FINAL, nodep, "Bad width call");
// Create unpacked byte from string perl IEEE 1800-2023 5.9
// Create unpacked byte from string see IEEE 1800-2023 5.9
if (AstConst* constp = VN_CAST(rhsp, Const)) {
if (const AstUnpackArrayDType* const arrayp
= VN_CAST(lhsDTypep->skipRefp(), UnpackArrayDType)) {

View File

@ -25,8 +25,11 @@ module t_case_huge_sub (/*AUTOARG*/
// End of automatics
// =============================
// Created from perl
// for $i (0..1023) { printf "\t10'h%03x: begin outa = 10'h%03x; outb = 2'b%02b; outc = 1'b%d; end\n", $i, rand(1024),rand(4),rand(2); };
// Created from Python3:
// for i in range(1024):
// print(" 10'h%03x: begin outa = 10'h%03x; outb = 2'b%d%d; outc = 1'b%d; end"
// % (i, random.randint(0,1024), random.randint(0,1),
// random.randint(0,1), random.randint(0,1)))
always @(/*AS*/index) begin
case (index)

View File

@ -21,8 +21,11 @@ module t_case_huge_sub2 (/*AUTOARG*/
// End of automatics
// =============================
// Created from perl
// for $i (0..1023) { printf "\t10'h%03x: begin outa = 10'h%03x; outb = 2'b%02b; outc = 1'b%d; end\n", $i, rand(1024),rand(4),rand(2); };
// Created from Python3:
// for i in range(1024):
// print(" 10'h%03x: begin outa = 10'h%03x; outb = 2'b%d%d; outc = 1'b%d; end"
// % (i, random.randint(0,1024), random.randint(0,1),
// random.randint(0,1), random.randint(0,1)))
always @(/*AS*/index) begin
case (index[7:0])

View File

@ -22,9 +22,10 @@ module t_case_huge_sub3 (/*AUTOARG*/
// End of automatics
// =============================
// Created from perl
//for $i (0..255) { $r=rand(4); printf "\t8'h%02x: begin outr <= outr^index[8:5]^4'h%01x; end\n", $i,
//rand(256); };
// Created from Pthon3:
// for i in range(256):
// print(" 8'h%02x: begin outr <= outr^index[8:5]^4'h%01x; end"
// % (i, random.randint(0,15)))
// Reset cheating
initial outr = 4'b0;