possible Verilog a1_init_a macro bug

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
OlPe_282281
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

at this time I wrote a DP verilog implementation and need to set A1 with a value != 0. If I check the Sim in Modelsim it is always 0. Can someone confirm this? My lines are shown here :

   

  ...

   

   cy_psoc3_dp8 #(
                  .a0_init_a(TRESHOLD_ZERO),
                  .a1_init_a(8'd8/*TRESHOLD_POS_ON*/),
                  .d0_init_a(TRESHOLD_NEG_OFF),
                  .d1_init_a(TRESHOLD_POS_OFF),
                  .cy_dpconfig_a(dpconfig0))
   DP8 (  ...

   

 

   

If it realy a bug, how fast will it be fixed and distributed with the next update. Or even is there a work arround?

0 Likes
4 Replies
OlPe_282281
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

maybe important:

   

   localparam TRESHOLD_NEG_ON  = 8'd0; 
   localparam TRESHOLD_NEG_OFF = 8'd2;
   localparam TRESHOLD_ZERO    = 8'd4;
   localparam TRESHOLD_POS_OFF = 8'd6;
   localparam TRESHOLD_POS_ON  = 8'd8;
 

0 Likes
OlPe_282281
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

oh, it seems that a0_init_a seems to have the same problem!

0 Likes
OlPe_282281
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

well, same here:

   

   cy_psoc3_dp #(
                 .a0_init(8'd3/*TRESHOLD_ZERO*/),
                 .a1_init(8'd8/*TRESHOLD_POS_ON*/),
                 .d0_init(TRESHOLD_NEG_OFF),
                 .d1_init(TRESHOLD_POS_OFF),
                 .cy_dpconfig(dpconfig0))
   DP (                 
 

0 Likes
OlPe_282281
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

is this behavior intentionally? Where is the bug list of known (bugzilla e.g.)?

0 Likes