• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. convert bus sıgnal

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 65
  • Views 839
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

convert bus sıgnal

abdurrahman0234
abdurrahman0234 over 4 years ago

Hello, my output is 3 bit. It shows range of -4 and 3, naturally as a sıgned. But  output of error cancellation network shows between -3 and +4 in result of noise cancellation with adder and substractor. I want to convert -4 to +4 or means that converting signed 100 to unsigned. How can I do it?.

I try to it with mux, converting 3 bit to 4 bits. But  while half of them signed adding 1, other half unsigned adding 0. It is diffucult because I can not make out<3> bit both 1 or 0. Another solution,may be verilogA. BUT ı failure to write it  as below. Can u help me please?   


`include "constants.vams"
`include "disciplines.vams"

module dec (input [2:0] x, output [3:0] y);
wire [2:0] x;
reg [3:0] y;

always @(*) begin

case (x)


3'b001: y <= {1'b0,x};
3'b010: y <= {1'b0,x};
3'b011: y <= {1'b0,x};
3'b100: y <= {1'b0,x};
3'b101: y <= {1'b1,x};
3'b110: y <= {1'b1,x};
3'b111: y <= {1'b1,x};
endcase
end
endmodule

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information