URL
https://opencores.org/ocsvn/i650/i650/trunk
[/] [i650/] [trunk/] [rtl/] [translators.v] - Diff between revs 9 and 11
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 11 |
Line 28... |
Line 28... |
// from http://www.opencores.org/lgpl.shtml
|
// from http://www.opencores.org/lgpl.shtml
|
//////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////
|
`include "defines.v"
|
`include "defines.v"
|
|
|
module translators (
|
module translators (
|
input [0:6] dist_early_out,
|
input [0:6] dist_early_out, bs_out, console_out,
|
input [0:6] bs_out,
|
input ri_gs, ri_bs, ri_console,
|
input ri_gs,
|
|
input ri_bs,
|
|
input n800x,
|
input n800x,
|
input [0:4] gs_out,
|
input [0:4] gs_out,
|
output gs_write,
|
output gs_write,
|
output [0:4] gs_in,
|
output [0:4] gs_in,
|
output reg[0:6] select_out
|
output reg[0:6] select_out
|
Line 44... |
Line 42... |
reg [0:6] sel_in7;
|
reg [0:6] sel_in7;
|
wire [0:6] sel_out7;
|
wire [0:6] sel_out7;
|
xlate7to5 x75 (sel_in7, gs_in);
|
xlate7to5 x75 (sel_in7, gs_in);
|
xlate5to7 x57 (gs_out, sel_out7);
|
xlate5to7 x57 (gs_out, sel_out7);
|
|
|
assign gs_write = ri_gs | ri_bs;
|
assign gs_write = ri_gs | ri_bs | ri_console;
|
|
|
always @(*) begin
|
always @(*) begin
|
sel_in7 = (ri_gs)? dist_early_out : ((ri_bs)? bs_out : `biq_blank);
|
sel_in7 = ri_console? console_out
|
|
: ri_gs? dist_early_out
|
|
: ri_bs? bs_out
|
|
: `biq_blank;
|
select_out = (n800x)? sel_out7 : `biq_blank;
|
select_out = (n800x)? sel_out7 : `biq_blank;
|
end;
|
end;
|
|
|
endmodule
|
endmodule
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.