Revision 1,
478 bytes
checked in by ttvmrc00, 14 years ago
(diff) |
upload iniziale
|
Rev | Line | |
---|
[1] | 1 | //Coplanar crossing with fault injection capability |
---|
| 2 | // if ~fault1 && fault0 out1 is ~in1 |
---|
| 3 | // if fault1 && ~fault0 out2 is ~in1 (interference) |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | module Crosswire (in1, in2, out1, out2, fault0, fault1); |
---|
| 7 | input in1, in2, fault0, fault1; |
---|
| 8 | output out1, out2; |
---|
| 9 | // if ~fault1 && fault0 out1 is ~in1 |
---|
| 10 | // if fault1 && ~fault0 out2 is ~in1 (interference) |
---|
| 11 | assign out1 = fault0 ? (~fault1 ? ~in1 : in1) : in1; |
---|
| 12 | assign out2 = fault1 ? (~fault0 ? ~in1 :in2) : in2 ; |
---|
| 13 | endmodule |
---|
| 14 | |
---|
| 15 | |
---|
Note: See
TracBrowser
for help on using the repository browser.