summaryrefslogtreecommitdiffstats
path: root/src/vhd2vl.y
diff options
context:
space:
mode:
authorRodrigo Alejandro Melo <rodrigomelo9@gmail.com>2017-02-09 22:13:16 -0300
committerRodrigo Alejandro Melo <rodrigomelo9@gmail.com>2017-02-09 22:15:43 -0300
commit4a0c6c57511eabbb32031d468ec09ce7987cc680 (patch)
tree4c53bcd3c182e91d86844ff48f785a81cbcef84d /src/vhd2vl.y
parent420ac28acaca59a10ed3f032dc60d610e2eb6376 (diff)
downloadvhdl2vl-4a0c6c57511eabbb32031d468ec09ce7987cc680.tar.gz
vhdl2vl-4a0c6c57511eabbb32031d468ec09ce7987cc680.zip
Space deleted in the <size>'<radix><number> notation
It seems to be the more common approach and the VHDL notation BASE#NUMBER# is translated without spaces. On the other hand, the space gives an error with Yosys synthesizer. Files on translated_examples were modified.
Diffstat (limited to 'src/vhd2vl.y')
-rw-r--r--src/vhd2vl.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vhd2vl.y b/src/vhd2vl.y
index afe5917..9847f4a 100644
--- a/src/vhd2vl.y
+++ b/src/vhd2vl.y
@@ -203,18 +203,18 @@ slist *addsl(slist *sl, slist *sl2){
slist *addvec(slist *sl, char *s){
sl=addval(sl,strlen(s));
- sl=addtxt(sl,"'b ");
+ sl=addtxt(sl,"'b");
sl=addtxt(sl,s);
return sl;
}
slist *addvec_base(slist *sl, char *b, char *s){
- const char *base_str="'b ";
+ const char *base_str="'b";
int base_mult=1;
if (strcasecmp(b,"X") == 0) {
- base_str="'h "; base_mult=4;
+ base_str="'h"; base_mult=4;
} else if (strcasecmp(b,"O") == 0) {
- base_str="'o "; base_mult=3;
+ base_str="'o"; base_mult=3;
} else {
fprintf(stderr,"Warning on line %d: NAME STRING rule matched but "
"NAME='%s' is not X or O.\n",lineno, b);
OpenPOWER on IntegriCloud