mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
Adding attributes to sync logic
- Otherwise tool was throwing away logic and timing incorretly. - This is why you HAVE to isolate this logic! Solve the problem once for all logic and for everyone.
This commit is contained in:
parent
3797cac74f
commit
875e4213a5
@ -13,7 +13,13 @@ module dsync (/*AUTOARG*/
|
||||
input [DW-1:0] din;
|
||||
output [DW-1:0] dout;
|
||||
|
||||
|
||||
`ifdef TARGET_SIM
|
||||
reg [PS-1:0] sync_pipe[DW-1:0];
|
||||
`else
|
||||
(* ASYNC_REG = "TRUE" *) (* DONT_TOUCH = "TRUE" *) reg [PS-1:0] sync_pipe[DW-1:0];
|
||||
`endif
|
||||
|
||||
|
||||
genvar i;
|
||||
integer j;
|
||||
|
@ -14,7 +14,12 @@ module rsync (/*AUTOARG*/
|
||||
input [DW-1:0] nrst_in;
|
||||
output [DW-1:0] nrst_out;
|
||||
|
||||
//TOOD: Should only be one target
|
||||
`ifdef TARGET_SIM
|
||||
reg [PS-1:0] sync_pipe[DW-1:0];
|
||||
`else
|
||||
(* ASYNC_REG = "TRUE" *) (* DONT_TOUCH = "TRUE" *) reg [PS-1:0] sync_pipe[DW-1:0];
|
||||
`endif
|
||||
|
||||
genvar i;
|
||||
integer j;
|
||||
|
Loading…
x
Reference in New Issue
Block a user