File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 66
77module la_idiff
88 #(
9- parameter PROP = "DEFAULT" ,
10- parameter DIFF = 0 // differential buffer if value > 0
9+ parameter PROP = "DEFAULT"
1110 )
1211 (
1312 input in, // positive input
1413 input inb, // negative input
1514 output z // output
1615 );
1716
18- if (DIFF)
19- assign z = (in & ~ inb) | // for proper diff inputs
20- (~ in & ~ inb); // fail on non diff input
21- else
22- assign z = in;
17+ assign z = (in & ~ inb) | // for proper diff inputs
18+ (~ in & ~ inb); // fail on non diff input
2319
2420endmodule
Original file line number Diff line number Diff line change 66
77module la_odiff
88 #(
9- parameter PROP = "DEFAULT" ,
10- parameter DIFF = 0 // differential buffer if value > 0
9+ parameter PROP = "DEFAULT"
1110 )
1211 (
1312 input in, // input
1413 output z , // non inverting output
1514 output zb // inverted output
1615 );
1716
18- if (DIFF)
19- begin
20- assign z = in;
21- assign zb = ~ in;
22- end
23- else
24- begin
25- assign z = in;
26- assign zb = 1'b0 ;
27- end
17+ assign z = in;
18+ assign zb = ~ in;
19+
2820endmodule
You can’t perform that action at this time.
0 commit comments