The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 12:16am
Pages: 1
Send Topic Print
concatenate bits into bus in Verilog-A (Read 4327 times)
ssdfz
Junior Member
**
Offline



Posts: 13

concatenate bits into bus in Verilog-A
Nov 03rd, 2008, 7:52pm
 
Hi everyone:

I created a 5-bit adder in Verilog-A, and when I tried to instantiate the 5-bit adder, FA_5bit, in a larger verilog-A system, I run into the following problem:
FA_5bit i2 (.A(IN[2:0]), .B({ J, K, H }), .CO(CO), .S(S[2:0]), .CI(CI)); HSPICE complains about the concatenation symble "{" saying "syntax error"
The simulation would otherwise go through I change the code as the following:
FA_5bit i2 (.A(IN_SUB[2:0]), .B(IN_SUB[2:0]), .CO(CO), .S(S[2:0]), CI(CI));

Could someone points me where I was wrong?

Many thanks
Erik
Back to top
 
 
View Profile   IP Logged
patrick
Junior Member
**
Offline



Posts: 30
Santa Rosa, CA.
Re: concatenate bits into bus in Verilog-A
Reply #1 - Nov 3rd, 2008, 10:03pm
 
This Verilog-A feature is not supported in the current HSPICE release (0809). However it is available in the next major release (0903).

Patrick
Back to top
 
 
View Profile   IP Logged
ssdfz
Junior Member
**
Offline



Posts: 13

Re: concatenate bits into bus in Verilog-A
Reply #2 - Nov 4th, 2008, 8:37pm
 
Thanks Patrick.

So before the new release, is there any work around? Or I have to split the 3-bit FA into single bit adder adder and connect them together?

Thanks
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.