URL
https://opencores.org/ocsvn/a-z80/a-z80/trunk
Subversion Repositories a-z80
[/] [a-z80/] [trunk/] [cpu/] [bus/] [data_switch.v] - Rev 4
Go to most recent revision | Compare with Previous | Blame | View Log
// Copyright (C) 1991-2013 Altera Corporation // Your use of Altera Corporation's design tools, logic functions // and other software and tools, and its AMPP partner logic // functions, and any output files from any of the foregoing // (including device programming or simulation files), and any // associated documentation or information are expressly subject // to the terms and conditions of the Altera Program License // Subscription Agreement, Altera MegaCore Function License // Agreement, or other applicable license agreement, including, // without limitation, that your use is for the sole purpose of // programming logic devices manufactured by Altera and sold by // Altera or its authorized distributors. Please refer to the // applicable agreement for further details. // PROGRAM "Quartus II 64-Bit" // VERSION "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition" // CREATED "Mon Oct 13 12:33:19 2014" module data_switch( sw_up_en, sw_down_en, db_down, db_up ); input wire sw_up_en; input wire sw_down_en; inout wire [7:0] db_down; inout wire [7:0] db_up; assign db_up[7] = sw_up_en ? db_down[7] : 1'bz; assign db_up[6] = sw_up_en ? db_down[6] : 1'bz; assign db_up[5] = sw_up_en ? db_down[5] : 1'bz; assign db_up[4] = sw_up_en ? db_down[4] : 1'bz; assign db_up[3] = sw_up_en ? db_down[3] : 1'bz; assign db_up[2] = sw_up_en ? db_down[2] : 1'bz; assign db_up[1] = sw_up_en ? db_down[1] : 1'bz; assign db_up[0] = sw_up_en ? db_down[0] : 1'bz; assign db_down[7] = sw_down_en ? db_up[7] : 1'bz; assign db_down[6] = sw_down_en ? db_up[6] : 1'bz; assign db_down[5] = sw_down_en ? db_up[5] : 1'bz; assign db_down[4] = sw_down_en ? db_up[4] : 1'bz; assign db_down[3] = sw_down_en ? db_up[3] : 1'bz; assign db_down[2] = sw_down_en ? db_up[2] : 1'bz; assign db_down[1] = sw_down_en ? db_up[1] : 1'bz; assign db_down[0] = sw_down_en ? db_up[0] : 1'bz; endmodule
Go to most recent revision | Compare with Previous | Blame | View Log