S
Sanjeev
Guest
I would like to know the vhdl equivalent of verilog trireg.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Depends how much of the Verilog functionality you need to mimic.I would like to know the vhdl equivalent of verilog trireg.
[snip lots of vaguely sensible ramblings]I would like to know the vhdl equivalent of verilog trireg.
Depends how much of the Verilog functionality you need to mimic.
Oh dear, oh dear, oh dear. This doesn't work. It's myIf I remember correctly, Verilog trireg can also offer a
"capacitive decay" behaviour in which its value collapses
to X if it hasn't been updated after some specified time.
You can imitate this using VHDL inertial delay:
my_trireg <= weaken(my_trireg), 'W' after decay_time;
[snip]On 22 Jul 2004 04:05:46 -0700, sanjeev.chaudhri@gmail.com (Sanjeev)
wrote:
I would like to know the vhdl equivalent of verilog trireg.
I assume that you meant to say that it cannot be inferred by currentNone of this makes any sense for synthesis, of course.
The code I posted is, of course, a "weak keeper" or "bus hold" model.On Thu, 22 Jul 2004 13:11:13 +0100, Jonathan Bromley
jonathan.bromley@doulos.com> wrote:
None of this makes any sense for synthesis, of course.
I assume that you meant to say that it cannot be inferred by current
synthesis tools.
XST, for example, can generate one from HDL source using the "keeper"
attribute (on an I/O pin only)