From a86c4f2f5db2cefb4cb937b8bb9e02c9cb776167 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 26 Jul 2018 15:22:52 +0200 Subject: Improvements in bbasm Signed-off-by: Clifford Wolf --- ice40/chipdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ice40') diff --git a/ice40/chipdb.py b/ice40/chipdb.py index b5fee359..b6af8fcf 100644 --- a/ice40/chipdb.py +++ b/ice40/chipdb.py @@ -675,7 +675,8 @@ class BinaryBlobAssembler: print("ref %s %s" % (name, comment)) def s(self, s, comment): - print("str %s" % s) + assert "|" not in s + print("str |%s| %s" % (s, comment)) def u8(self, v, comment): if comment is None: -- cgit v1.2.3