Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

Syntax error in defining Heirarchy.. System Verilog

Altera_Forum
Honored Contributor II
968 Views

I have my enum type defined as: 

typedef enum { chain_master, A_master, B_master, ip1_slave, ip2_slave, master, slave } ip_chain;  

I have a heirarchy which i have defined as following: 

`define heirarchy_tree begin tree.master=chain_master; tree.master=chain_master; tree.master=chain_master; tree.master=A_master; tree.master=B_master; end  

When I compile it, I get the syntax error: 

Syntax error: 

token is 'tree' 

tree[chain_master].master=chain_master; 

Can anyone tell what is missing?
0 Kudos
0 Replies
Reply