Subversion Repositories pentevo

Rev

Rev 30 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1. `include "../include/tune.v"
  2.  
  3. // PentEvo project (c) NedoPC 2008-2009
  4. //
  5. // manages ZX-bus IORQ-IORQGE stuff and free bus content
  6. //
  7. module zbus(
  8.  
  9.         input iorq_n,
  10.         input rd_n,
  11.         input wr_n,
  12.         input m1_n,
  13.  
  14.         output iorq1_n,
  15.         output iorq2_n,
  16.  
  17.         input iorqge1,
  18.         input iorqge2,
  19.  
  20.         input porthit,
  21.  
  22.         output drive_ff
  23. );
  24.  
  25.  
  26.  
  27.         assign iorq1_n = iorq_n | porthit;
  28.  
  29.         assign iorq2_n = iorq1_n | iorqge1;
  30.  
  31.         assign drive_ff = ( (~(iorq2_n|iorqge2)) & (~rd_n) ) | (~(m1_n|iorq_n));
  32.  
  33.  
  34.  
  35.  
  36.  
  37. endmodule
  38.