From 6336432461366c94b7e260254181c0124f7df493 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 13 Jan 2011 19:17:40 -0800 Subject: [PATCH] is_cell needs to be defined for root scopes. This patch fixes a small bug found with the vlog95 back end. A root scope should define is_cell instead of leaving it undefined. Normally I would expect a root scope to not be a cell, but I don't think the standard prohibits this from happening, so copy the value from the definition. (cherry picked from commit 1a1b0d755120cb12fca352323e843451823541b3) --- t-dll.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t-dll.cc b/t-dll.cc index ce07f7210..8eb219544 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 2000-2011 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -575,6 +575,7 @@ void dll_target::add_root(ivl_design_s &des__, const NetScope *s) root_->nattr = s->attr_cnt(); root_->attr = fill_in_attributes(s); root_->is_auto = 0; + root_->is_cell = s->is_cell(); des__.nroots_++; if (des__.roots_)