//--------------------------------------------------------------------------------------------------
//
// Title       : PWMtranslator
// Design      : U4
// Author      : mbari###
// Company     : MBARI
//
//-------------------------------------------------------------------------------------------------
//
// File        : c:\projects\genosensor\2g\cplds\core\u4\src\PWMtranslator.v
// Generated   : Fri Dec 19 18:07:00 2003
// From        : interface description file
// By          : Itf2Vhdl ver. 1.20
//
//-------------------------------------------------------------------------------------------------
//
// Description : 
//
//-------------------------------------------------------------------------------------------------
`timescale 1ps / 1ps

//{{ Section below this comment is automatically maintained
//   and may be overwritten
//{module {PWMtranslator}}
module PWMtranslator ( Reset ,PWM ,Brake ,fBRK ,Mclk ,PAH ,PBH ,PAL ,PBL ,DIR );

input Reset ;
wire Reset ;
input PWM ;
wire PWM ;
input Brake ;
wire Brake ;
input fBRK ;
wire fBRK ;
input DIR ;
wire DIR ;
input Mclk ;
wire Mclk ;

output PAH ;
wire PAH ;
output PBH ;
wire PBH ;
output PAL ;
wire PAL ;
output PBL ;
wire PBL ;

//}} End of automatically maintained section

// -- Enter your statements here -- //


wire BRK;

assign BRK = (fBRK | Brake);

assign PAH = (PWM & !DIR & !BRK);
assign PAL = (!PWM & DIR & !BRK) | (PWM & !DIR & !BRK);
assign PBH = (PWM & DIR & !BRK);
assign PBL = (!PWM & !DIR & !BRK) | (PWM & DIR & !BRK);

endmodule
