OpenCores
URL https://opencores.org/ocsvn/quark/quark/trunk

Subversion Repositories quark

[/] [quark/] [trunk/] [05_HDLConstruction/] [01_OldArchitecture_ReferenceOnly/] [Quantum.v] - Rev 12

Go to most recent revision | Compare with Previous | Blame | View Log

module Quantum (
  input        Clock,
  input        Reset,
  output [7:0] Gpio1
  );
 
  wire       WriteEnable;
  wire       WritePC;
  wire       IncrementPC;
  wire [0:7] BusDataIn;
  wire [0:7] BusDataOut;
  wire [0:7] AluResult;
  wire [0:7] ProgramCounter;
  wire [0:1] AluRegMux1;
  wire [0:1] AluRegMux2;
  wire [0:7] AluInstruction;
  wire [0:7] REGA;
  wire [0:7] REGB;
  wire [0:7] REGC;
  wire [0:7] REGX;
  wire [0:7] REGY;
  wire [0:7] REGZ;
  wire [0:7] AluInput1;
  wire [0:7] AluInput2;
  wire [0:7] NewPC;
 
  ControlUnit ControlUnit (
    .Clock          (Clock),
    .Reset          (Reset),
    .BusDataIn      (BusDataIn),
    .AluResult      (AluResult),
    .BusDataOut     (BusDataOut),
    .IncrementPC    (IncrementPC),
    .WritePC        (WritePC),
    .NewPC          (NewPC),
    .AluInput1      (AluInput1),
    .AluInput2      (AluInput2),
    .AluInstruction (AluInstruction),
    .REGC           (Gpio1),
    .WriteEnable    (WriteEnable)
  );
 
  ProgramCounter PCUnit (
    .Clock          (Clock),
    .Reset          (Reset),
    .IncrementPC    (IncrementPC),
    .WritePC        (WritePC),
    .NewPC          (NewPC),
    .ProgramCounter (ProgramCounter)
  );
 
  ModAlu AluUnit (
    .Clock          (Clock),
    .Reset          (Reset),
    .AluInstruction (AluInstruction),
    .AluInput1      (AluInput1),
    .AluInput2      (AluInput2),
    .AluResult      (AluResult)
  );
 
  ROM RomUnit (
    .Clock       (Clock),
    .Reset       (Reset),
    .WriteEnable (WriteEnable),
    .DataOut     (BusDataIn),
    .DataIn      (BusDataOut),
    .Address     (ProgramCounter)
  );
endmodule
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.