|
22 | 22 | */
|
23 | 23 | module XC2CDevice(
|
24 | 24 | jtag_tdi, jtag_tms, jtag_tck, jtag_tdo,
|
25 |
| - dedicated_input, iob_out, iob_in, iob_t); |
| 25 | + dedicated_input, iob_out, iob_in, iob_t, |
| 26 | + done, dbgout |
| 27 | + ); |
26 | 28 |
|
27 | 29 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
28 | 30 | // Device configuration
|
@@ -114,6 +116,9 @@ module XC2CDevice(
|
114 | 116 | output wire[MACROCELLS-1:0] iob_t;
|
115 | 117 | input wire[MACROCELLS-1:0] iob_in;
|
116 | 118 |
|
| 119 | + output wire done; |
| 120 | + output wire dbgout; |
| 121 | + |
117 | 122 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
118 | 123 | // The bitstream
|
119 | 124 |
|
@@ -188,7 +193,9 @@ module XC2CDevice(
|
188 | 193 |
|
189 | 194 | .config_write_en(config_write_en),
|
190 | 195 | .config_write_addr(config_write_addr),
|
191 |
| - .config_write_data(config_write_data) |
| 196 | + .config_write_data(config_write_data), |
| 197 | + |
| 198 | + .config_done(done) |
192 | 199 | );
|
193 | 200 |
|
194 | 201 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -308,6 +315,14 @@ module XC2CDevice(
|
308 | 315 | assign iob_out[5] = right_mc_out[5];
|
309 | 316 | assign iob_out[4] = right_mc_out[4];
|
310 | 317 | assign iob_out[3] = right_mc_out[3];
|
| 318 | + |
| 319 | + //assign iob_out[5] = right_pterms[22]; //pterm, should be copy of x |
| 320 | + //assign iob_out[4] = right_mc_out[3]; //led_0, constant 1: OR arrays 0 xor 1 |
| 321 | + //assign iob_out[3] = right_mc_out[4]; //led_1, passthrough of pterm C |
| 322 | + //for MC4 this is pterm 22 |
311 | 323 | assign iob_out[2:0] = 3'h0;
|
312 | 324 |
|
| 325 | + //Helper to keep stuff from getting optimized out |
| 326 | + assign dbgout = ^right_mc_out ^ ^left_mc_out; |
| 327 | + |
313 | 328 | endmodule
|
0 commit comments