Fix vlog95 target to not output data types in port declarations.

This avoids variable redeclaration errors.
This commit is contained in:
Martin Whitaker 2015-05-18 23:16:53 +01:00
parent 71b1546a7d
commit 61ace52f31
1 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2010-2014 Cary R. (cygcary@yahoo.com)
* Copyright (C) 2010-2015 Cary R. (cygcary@yahoo.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -432,10 +432,13 @@ static void emit_sig_type(ivl_signal_t sig)
}
/* Check to see if we have a variable (reg) or a net. */
if (type == IVL_SIT_REG) {
/* The variable data type will be declared later, so here
we just want to declare the range and whether or not it
is signed. */
if (ivl_signal_integer(sig)) {
fprintf(vlog_out, " integer");
/* nothing to do */
} else if (ivl_signal_data_type(sig) == IVL_VT_REAL) {
fprintf(vlog_out, " real");
/* nothing to do */
} else {
int msb, lsb;
get_sig_msb_lsb(sig, &msb, &lsb);