From 2f5dcda3b6b5b85ff31fa341ee86f9ba16576f19 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 9 Jun 2008 12:49:38 +0100 Subject: [PATCH] Delay statements now translated correctly --- tgt-vhdl/stmt.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tgt-vhdl/stmt.cc b/tgt-vhdl/stmt.cc index 7be5d58ae..eda40a6ff 100644 --- a/tgt-vhdl/stmt.cc +++ b/tgt-vhdl/stmt.cc @@ -199,8 +199,10 @@ static int draw_delay(vhdl_process *proc, ivl_statement_t stmt) // VHDL wait statement compute the value from that. // The other solution is to add them as parameters to // the vhdl_process class - std::cout << "Delay for " << value << std::endl; - + vhdl_wait_stmt *wait = + new vhdl_wait_stmt(VHDL_WAIT_FOR_NS, new vhdl_const_int(value)); + proc->add_stmt(wait); + // Expand the sub-statement as well // Often this can result in a useless `null' statement // Maybe add a check here and ignore it if it IVL_ST_NOOP?