From 0b6b47ca670b9219bcb81ab7d3599267c2ef7571 Mon Sep 17 00:00:00 2001 From: Peter Crozier Date: Fri, 8 May 2020 14:40:49 +0100 Subject: Implement SV structs. --- frontends/ast/ast.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'frontends/ast/ast.h') diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index 8932108e3..29bd1b84d 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -143,7 +143,7 @@ namespace AST AST_GENCASE, AST_GENBLOCK, AST_TECALL, - + AST_POSEDGE, AST_NEGEDGE, AST_EDGE, @@ -156,7 +156,9 @@ namespace AST AST_PACKAGE, AST_WIRETYPE, - AST_TYPEDEF + AST_TYPEDEF, + AST_STRUCT, + AST_STRUCT_ITEM }; struct AstSrcLocType { @@ -306,6 +308,7 @@ namespace AST // helpers for enum void allocateDefaultEnumValues(); + void annotateTypedEnums(AstNode *template_node); }; // process an AST tree (ast must point to an AST_DESIGN node) and generate RTLIL code -- cgit v1.2.3 From f482c9c0168a6857383e7d9360c8ca1df36ba2bc Mon Sep 17 00:00:00 2001 From: Peter Crozier Date: Tue, 12 May 2020 14:25:33 +0100 Subject: Generalise structs and add support for packed unions. --- frontends/ast/ast.h | 1 + 1 file changed, 1 insertion(+) (limited to 'frontends/ast/ast.h') diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index 29bd1b84d..6d556fae2 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -158,6 +158,7 @@ namespace AST AST_WIRETYPE, AST_TYPEDEF, AST_STRUCT, + AST_UNION, AST_STRUCT_ITEM }; -- cgit v1.2.3