Hi, I'm trying to code this structure in Verilog. There are two flip flops (c and d) that are identical. XST 6.1.3 wants to merge them together. I want to stop it from doing that.
e .---. c +-----|D Q|----- | +-|>C | a .---. b | | | | ----|D Q|-----+ | '---' +--|>C | | | | | | | | | '---' | f | .---. d | +-----|D Q|----- clk-+----------------+-|>C | | | '---'
created by Andy´s ASCII-Circuit v1.24.140803 Beta
I am giving the -equivalent_register_removal YES option to XST (it's needed elsewhere in the design) so I have to use attributes to stop XST from merging these particular ffs, since I don't wish to instantiate unisim components.
When I use the keep attribute on all of c, d, e and f, XST still merges the ffs, and comes back with this warning:
WARNING:Xst:638 - in unit foo Conflict on KEEP property on signal e and f f signal will be lost.[ Warning 638 isn't in the Xilinx documentation or the answers database. ]
Here's the Verilog:
module foo ( input wire clk, input wire a, output reg c, output reg d );
wire e = b; wire f = b;
// synthesis attribute keep of c is "true" // synthesis attribute keep of d is "true" // synthesis attribute keep of e is "true" // synthesis attribute keep of f is "true"
always @(posedge clk) begin b