Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: `case' expression with list literal behaves differently in pcDefinePCell than in the toplevel

$
0
0
Hi Tom, I don't see the variable via_layer being assigned, but also I am a little confused by the format of your case statement, partly because I know that 'case' allows for alternative matches in the first item which are represented as a list of choices, but it looks as though you may have dealt with that already? Anyhow, perhaps try the following: (pcDefinePCell (list (ddGetObj "dungeon") "case_in_pcell" "layout") ((metal1_layer "M2") (metal2_layer "M3")) (let (via_layer) (fprintf stdout "%A\n" (list metal1_layer metal2_layer)) (setq via_layer (case (list metal1_layer metal2_layer) ((("M1" "M2")) "V1") ((("M2" "M3")) "V2"))) (fprintf stdout "%A\n" via_layer) (rodCreateRect ?layer via_layer))) Hopefully it was just the varibale assignment that you overlooked? Cheers, Lawrence.

Viewing all articles
Browse latest Browse all 33813

Trending Articles