Re: Is there a reset signal available in verilog in Xilinx FPGAs?
- From: Duane Clark <junkmail@xxxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 16:24:59 -0700
janbeck@xxxxxxxxx wrote:
As a sample here is some code. To be clear: I am not looking for
alternate ways to code the following always block; I would like to
know a way to access the power on reset from verilog. The block is
just a simple example of where a reset might be used. I am aware that
flip flops in an fpga get initialized globally upon power up.
reg faultReg3;
always @ (posedge slow_clk)
if (reset) faultReg3 <= 0;
else if (fault3) faultReg3 <= 1;
else faultReg3 <= faultReg3;
Have a wire in your top level named "reset" with no source. The synthesis tools should recognize this and replace "reset" with the GSR net. Instantiate the top level in your testbench, and in the testbench, do something like:
assign uut.reset=(gsr_reset);
Your testbench drives gsr_reset, maybe active for 100nS or so.
.
- References:
- Prev by Date: Re: Problem cascading 2 DCMs
- Next by Date: Re: a question about DDFS
- Previous by thread: Is there a reset signal available in verilog in Xilinx FPGAs?
- Index(es):
Relevant Pages
|