From fbeee1bae381a9539d9e904b4a870916c09b270d Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 30 Jan 2016 17:01:13 +0000 Subject: [PATCH] Temporary fix for br995 - assignment to memory not supported in synthesis. For now, output a "sorry" message. --- synth2.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/synth2.cc b/synth2.cc index 44f7e07f6..aa9dd6389 100644 --- a/synth2.cc +++ b/synth2.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2015 Stephen Williams (steve@icarus.com) + * Copyright (c) 2002-2016 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 @@ -103,6 +103,14 @@ bool NetAssignBase::synth_async(Design*des, NetScope*scope, NetNet*rsig = rval_->synthesize(des, scope, rval_); assert(rsig); + if (lval_->word() && ! dynamic_cast(lval_->word())) { + cerr << get_fileline() << ": sorry: assignment to variable " + "location in memory is not currently supported in " + "synthesis." << endl; + des->errors += 1; + return false; + } + NetNet*lsig = lval_->sig(); if (!lsig) { cerr << get_fileline() << ": error: "