Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SiFive Intel FPGA Direction Request #131

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions intel/common/vsrc/bootrom.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module BootROM(
input wire [10:0] address,
input wire clock,
input wire me,
input wire oe,
output wire [31:0] q
);

wire [31:0] q_r;

rom r(
.address(address),
.clock(clock),
.rden(me),
.q(q_r)
);

assign q[31:24] = q_r[7:0];
assign q[23:16] = q_r[15:8];
assign q[15:8] = q_r[23:16];
assign q[7:0] = q_r[31:24];

endmodule
46 changes: 46 additions & 0 deletions intel/common/vsrc/iobuf_full.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Joseph Tarango
module iobuf(
output wire [0:0] dataout, // dout.export
input wire [0:0] datain, // din.export
input wire [0:0] oe, // oe.export
inout wire [0:0] padio // pad_io.export
);

assign dataout = datain;

IOBUF iobufElement(
.dataout (dataout), // output, width = 1, dout.export
.datain (datain), // input, width = 1, din.export
.oe (oe), // input, width = 1, oe.export
.padio (padio) // inout, width = 1, pad_io.export
);

endmodule


module ibuf(
input wire [0:0] datain,
output wire [0:0] dataout
);

assign dataout = datain;

IOBUF ibufElement(
.datain(datain),
.dataout(dataout)
);

endmodule

module obuf(
input wire [0:0] datain,
output wire [0:0] dataout
);

assign dataout = datain;
IOBUF obufElement(
.datain(datain),
.dataout(dataout)
);

endmodule
46 changes: 46 additions & 0 deletions intel/common/vsrc/iobuf_wire.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Joseph Tarango
module iobuf(
output wire [0:0] dataout, // dout.export
input wire [0:0] datain, // din.export
input wire [0:0] oe, // oe.export
inout wire [0:0] padio // pad_io.export
);

assign dataout = datain;

//IOBUF iobufElement(
// .dataout (dataout), // output, width = 1, dout.export
// .datain (datain), // input, width = 1, din.export
// .oe (oe), // input, width = 1, oe.export
// .padio (padio) // inout, width = 1, pad_io.export
//);

endmodule


module ibuf(
input wire [0:0] datain,
output wire [0:0] dataout
);

assign dataout = datain;

//IOBUF ibufElement(
// .datain(datain),
// .dataout(dataout)
//);

endmodule

module obuf(
input wire [0:0] datain,
output wire [0:0] dataout
);

assign dataout = datain;
//IOBUF obufElement(
// .datain(datain),
// .dataout(dataout)
//);

endmodule
Loading